Project

General

Profile

Bug #20662

Updated by nobu (Nobuyoshi Nakada) 4 months ago

`pack("G")`/`unpack("G")` pack("G")/unpack("G") works great with NaN values.    However, 

 # - `pack("g")` pack("g") completely discards any actual NaN value and always packs the same bytes for a NaN 
   
 #     ("bug as implemented" in `VALUE_to_float`) VALUE_to_float) 

 Also: 

 # - `unpack("g")` unpack("g") always sets the quiet bit to 1 in the `Float` Float result 
   
 #     (location of bug not obvious to me) 

Back