Mantis - Squeak
Viewing Issue Advanced Details
3482 Kernel minor always 04-19-06 10:13 07-22-06 23:18
andreas  
 
normal  
closed 3.8  
fixed  
none    
none 3.9  
0003482: Float readFrom: '-0.0' => +0.0
Negative zero is well-defined in IEEE 754 format, for example:
  x := 0.0 clone.
  x basicAt: 1 put: 16r80000000.
  x
and prints correctly for -0.0. However, *parsing* -0.0 does not create negative zero but rather positive zero which is a problem for numerical code that relies on the assumption of correct floating point parsing.
Annex A of the standard actually notes this issue:
  "2) x is x copied with its sign reversed, not 0x; the distinction is germane when x is 0 or NaN."

Notes
(0006163)
MarcusDenker   
07-22-06 23:18   
No problem in 3.9