Opened 8 years ago

Closed 6 years ago

#3174 closed feature request (duplicate)

decodeFloat (0.0/0.0) = undefined

Reported by: crutcher Owned by:
Priority: normal Milestone:
Component: libraries/base Version:
Keywords: Cc: carette
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


there are a number of bugs associated with decoding NaN that could be resolved by changing decodeFloat (0.0/0.0) to be undefined. - floor - encodeFloat . decodeFloat

Change History (3)

comment:1 Changed 8 years ago by simonpj

Cc: carette added
difficulty: Unknown

NaNs are an area where it's easy for someone ignorant to screw up. Would some of you guys who know and care about numerics like to come up with a concrete code change -- maybe it's only one line in the definition of decodeFloat -- and then we'll apply it? Ideally a patch, but it'd be good enough to say "change this line to say that".

Oh, and please give us a test or two with expected output.



comment:2 Changed 8 years ago by igloo

Milestone: _|_

comment:3 Changed 6 years ago by simonmar

Resolution: duplicate
Status: newclosed
Type of failure: None/Unknown

duplicate of #3134

Note: See TracTickets for help on using tickets.