home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11729 < prev    next >
Encoding:
Text File  |  1992-11-19  |  944 b   |  25 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!news.univie.ac.at!vm.univie.ac.at!A6261GAQ
  3. From: A6261GAQ@vm.univie.ac.at (HAEFELE GEORG)
  4. Subject: lex - problems with floats ?
  5. Message-ID: <1992Nov19.184142.7413@newssrv.edvz.univie.ac.at>
  6. Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
  7. Nntp-Posting-Host: helios.edvz.univie.ac.at
  8. Organization: University of Vienna
  9. Date: Thu, 19 Nov 1992 18:38:23 GMT
  10. Lines: 13
  11.  
  12. I compiled some programs (eg. netcdf, udunits from unidata.ucar.edu)
  13. which read from an ascii file using the lex utility (AIX3.2).
  14. Now if the ascii file contains floats or doubles they will be truncated
  15. (e.g. 0.3432 will get 0,3  or in the worst case 0).
  16. Using flex returns the correct values, but some programs depend on
  17. linecount (yylineno) which is not part of flex (?).
  18. Can anybody give me an advise how to solve this problem.
  19.  
  20. Thanks in advance
  21.  
  22. Haefele Georg
  23. Department of Geography
  24. University of Vienna
  25.