On Fri, Oct 19, 2012 at 1:04 AM, Jan E. <[email protected]> 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
