home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!utcsri!newsflash.concordia.ca!daily-planet.concordia.ca!marcap
- From: marcap@cs.concordia.ca (PAWLOWSKY marc)
- Newsgroups: comp.lang.perl
- Subject: Questions on Perl Source Code.
- Summary: Trouble with integers.
- Message-ID: <5445@daily-planet.concordia.ca>
- Date: 13 Nov 92 20:06:44 GMT
- References: <5444@daily-planet.concordia.ca>
- Sender: usenet@daily-planet.concordia.ca
- Organization: Computer Science, Concordia University, Montreal, Quebec
- Lines: 26
-
-
- Due to a nasty gotch'a in the 80486 my port of PERL has trouble
- with integers. In particular 1 becomes 1.000000000000000056.
-
- Now this little beast cause trouble on unformatted outputs, and
- when lists are joined, and even trouble with boolean operators.
-
- Now the question is can anybody tell me where are doubles converted
- to strings (is it in sprintf statements allover?) Can anybody
- tell mhere are the logical operators implemented (e.g. ||, &&, ...).
-
-
- Is there a document somewhere that helps explan the C source code.
- I'm looking for some type of overview, explaining what the data
- structures are, flow control, tht type of thing.
-
- Thanks
-
- Marc Pawlowsky
-
-
- P.S. Hint for next version of PERL, include an integer type
- that is freely converted between doubles, strings, and integers
- so this type of portability problem disappears.
-
-
-