read-ing scientific notation

Amanda Clare ajc99 at aber.ac.uk
Mon Oct 8 12:48:30 EDT 2001


GHC is oddly particular about decimal points in "read"-ing in of Doubles
in scientific notation. It seems that read "3.0e-06" is acceptable but
read "3e-06" is not (both read "3" and read "3.0" work fine as Doubles).
It's the same in nhc and hugs. Perhaps this is some standard somewhere
that Perl doesn't understand?

[ajc99 at pcburum yeast]$ perl -e "print 6.0e-06;"
6e-06       

Amanda
--
Amanda Clare  http://users.aber.ac.uk/ajc99/
Tel: +44 (0)1970 621922  Fax: +44 (0)1970 622455
Dept. of Computer Science, University of Wales, Aberystwyth, SY23 3DB




More information about the Glasgow-haskell-bugs mailing list