Re: Bug in math.e?
- Posted by Anthill Nov 30, 2010
- 1326 views
Round seems to give me a problem. Is there a way to get the expected output?
atom a a = 183.4126 puts(1,to_string(round(a))) -- got 183, expected 183 puts(1,to_string(round(a,10))) -- got 183.400000000000006, expected 183.4 puts(1,to_string(round(a,100))) -- got 183.409999999999997, expected 183.42 puts(1,to_string(round(a,1000))) -- got 183.413000000000011, expected 183.413