See this may be u get some idea.. http://rubypond.com/blog/when-ruby-floating-just-isn-t-good-enough
-Shyam On Wed, Mar 31, 2010 at 11:48 AM, anton effendi <[email protected]> wrote: > > Hii All > > I use ruby 1.8.7 > I run irb and type: > > a = (0.29 * 100).to_i > > the result is 28 > > > why?????? > > could u explain to me.. Please???? > > > THank you > > > -- > > Senior Rails Developer > Anton Effendi - Wu You Duan > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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 http://groups.google.com/group/rubyonrails-talk?hl=en.

