Issue 4525 in pharo: Fraction asFloat does not return negativeZero in case of Underflow

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4525 in pharo: Fraction asFloat does not return negativeZero in case of Underflow

pharo
Status: Accepted
Owner: [hidden email]

New issue 4525 by [hidden email]: Fraction asFloat does not return  
negativeZero in case of Underflow
http://code.google.com/p/pharo/issues/detail?id=4525

We expect Fraction with large denominator to underflow when converted to  
Float, and it does:

300 factorial reciprocal asFloat.
-> 0.0

But it does not answer negativeZero when negative:

300 factorial reciprocal negated asFloat.
-> 0.0 INSTEAD OF -0.0

It should...



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4525 in pharo: Fraction asFloat does not return negativeZero in case of Underflow

pharo
Updates:
        Status: FixProposed

Comment #1 on issue 4525 by [hidden email]: Fraction asFloat does  
not return negativeZero in case of Underflow
http://code.google.com/p/pharo/issues/detail?id=4525

See SLICE in inbox for fix and test


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker