MOO-cows Mailing List Archive
Re: Another floating point inconsistency thing...
In article <TCPSMTP.email@example.com>,
>Line 1: syntax error
>[used 2 ticks, 0 seconds.]
True, but it is harmless. The reason 3. is rejected in code is that
it is very difficult for the parser to determine if the "." is really
intended to be a decimal point or not (as opposed to a range, for
example). In the case of tofloat() there isn't anything else it
*could* be, so it seems it would be pretty silly to restrict it just
in order to throw a fit.
PGP public key available - finger firstname.lastname@example.org
"The earth is but one country, and mankind its citizens." -- Bahá'u'lláh
GE/CS 3.1 d- s-:- a- C++++ ULIS++++$ P+++ L++++>+++++ E++ W++ N++ o+ K
w--- O@ M V- PGP+ t+ 5++ X? R@ tv- b++ DI++++ D++(+) G e++ h- r-- y-
Subject Index |