A
alexc42
Hi all,
I must admit that I am new to Ruby, so maybe this is not a real bug?!
Trying the following
print "#{((1.0 + 0.025)/0.0002 + 1.0)} \n"
print "#{((1.0 + 0.025)/0.0002 + 1.0).to_i} \n"
I get (with ruby 1.8.4 & 1.8.5, Linux) as output
5126.0
5125
Any suggestions?
Thanks,
Alex.
I must admit that I am new to Ruby, so maybe this is not a real bug?!
Trying the following
print "#{((1.0 + 0.025)/0.0002 + 1.0)} \n"
print "#{((1.0 + 0.025)/0.0002 + 1.0).to_i} \n"
I get (with ruby 1.8.4 & 1.8.5, Linux) as output
5126.0
5125
Any suggestions?
Thanks,
Alex.