Skip to content

read::Float does not handle string that are all digits, but end in "."

(read a)::Float fails if a is a string that is all digits but ends int "."

(read "20.") Float fails

but

(read "20.3") Float succeeds

compare to the c atof function which succeeds in producing a correct value in both cases

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information