#72 string->number truncates floating-point numbers

closed-later
nobody
run-time (53)
2
2003-03-31
2003-02-23
Alex
No

Here is what I see on my system (Linux, SuSE 7.3), scsh compiled from source:

Welcome to scsh 0.6.3 (Health Reform)
Type ,? for help.
> (string->number "1.23456789")
1.23457

I checked that this does not occur in Scheme48 versions 0.57 or 0.53.

Cheers,

Alex

Discussion

    • priority: 5 --> 2
    • status: open --> closed-later
     
  • Logged In: YES
    user_id=17553

    Scsh opens a different package for floating point arithmetic
    (FLOATNUMS). This package is known to have problems with the
    external representation. I don't know when we will have time
    to fix this.

    --
    Martin