As far as I can tell, "0.6" and "0.7" also do not have the same value as strtod().
The reason I noticed this is mruby-marshal.
However, when I do Marshal.dump/load, the respective results for 0.6 and 0.7 seem to be equal.
% bin/mirb
mirb - Embeddable Interactive Ruby Shell
> Marshal.load(Marshal.dump(0.3)) == 0.3
=> false
> Marshal.load(Marshal.dump(0.6)) == 0.6
=> true
> Marshal.load(Marshal.dump(0.7)) == 0.7
=> true
As far as I can tell,
"0.6"and"0.7"also do not have the same value asstrtod().The reason I noticed this is mruby-marshal.
However, when I do
Marshal.dump/load, the respective results for0.6and0.7seem to be equal.