G
Greg Lorriman
This
('40.12'.to_f*100).to_i
results in this integer :
4011
This is a bit of surprise. I'm using 1.8.4 on windows. Is this a bug?
Is there another floating type that avoids this problem? I;m not
seeing anything in the docs that might have warned me.
Greg
('40.12'.to_f*100).to_i
results in this integer :
4011
This is a bit of surprise. I'm using 1.8.4 on windows. Is this a bug?
Is there another floating type that avoids this problem? I;m not
seeing anything in the docs that might have warned me.
Greg