home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6981 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.3 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!utcsri!newsflash.concordia.ca!daily-planet.concordia.ca!marcap
  2. From: marcap@cs.concordia.ca (PAWLOWSKY marc)
  3. Newsgroups: comp.lang.perl
  4. Subject: Questions on Perl Source Code.
  5. Summary: Trouble with integers.
  6. Message-ID: <5445@daily-planet.concordia.ca>
  7. Date: 13 Nov 92 20:06:44 GMT
  8. References: <5444@daily-planet.concordia.ca>
  9. Sender: usenet@daily-planet.concordia.ca
  10. Organization: Computer Science, Concordia University, Montreal, Quebec
  11. Lines: 26
  12.  
  13.  
  14. Due to a nasty gotch'a in the 80486 my port of PERL has trouble
  15. with integers.  In particular 1 becomes 1.000000000000000056.
  16.  
  17. Now this little beast cause trouble on unformatted outputs, and
  18. when lists are joined, and even trouble with boolean operators.
  19.  
  20. Now the question is can anybody tell me where are doubles converted
  21. to strings (is it in sprintf statements allover?)  Can anybody
  22. tell mhere are the logical operators implemented (e.g. ||, &&, ...).
  23.  
  24.  
  25. Is there a document somewhere that helps explan the C source code.
  26. I'm looking for some type of overview, explaining what the data 
  27. structures are, flow control, tht type of thing.
  28.  
  29. Thanks
  30.  
  31.     Marc Pawlowsky
  32.  
  33.  
  34. P.S.  Hint for next version of PERL, include an integer type
  35. that is freely converted between doubles, strings, and integers
  36. so this type of portability problem disappears.
  37.  
  38.  
  39.