From: Robert Klemme Date: 2012-10-19T21:19:11+09:00 Subject: Re: Truncate number which ends with 0 decimal On Fri, Oct 19, 2012 at 1:04 AM, Jan E. wrote: > this is a big misunderstanding of numbers. You mistake the > *representation* of a number for the number itself. 948484747.5000000, > 948484747.50 and 948484747.5 are all the exact same number. So trying to > "convert" one to another makes absolutely no sense. I couldn't agree more. Usually formatting should only be applied on output (i.e. presentation to the user, printf comes to mind). Before that rounding should be avoided to keep calculations as precise as possible. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/