Thanks, thought I was going mad initially - I guess this probably wont get fixed till 10.6.4
Don't suppose apple track bugs like this publicly? Cheers jebw On 7 April 2010 19:04, Paul Ingham <[email protected]>wrote: > Hello, > > It's a bug in the bundled version of ruby that comes with 10.6.3. > > > http://www.abletech.co.nz/2010/03/osx-10-6-3-installs-new-ruby-with-faulty-bigdecimal/ > > Paul > > On 7 April 2010 18:59, Jeb Wilkins <[email protected]> wrote: > >> Hi All, >> >> If anyone's got Mac thats still on 10.6.2, and using the systems ruby >> 1.8.7, can they go into script/console (not irb) for one of their projects >> and try the following >> >> x = BigDecimal.new('2.02') >> x.to_f >> >> does it return 2.2 or 2.02? >> >> As bizarre as this sounds I'm getting a bug in one of my apps since a few >> days ago and it seems my mac is now returning 2.2 from the above, which I >> think is wrong. On a Linux box I've got on 1.8.6 this is returning 2.02 >> >> Cheers >> >> jebw >> >> -- >> You received this message because you are subscribed to the Google Groups >> "NWRUG" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<nwrug-members%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nwrug-members?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nwrug-members%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. > -- You received this message because you are subscribed to the Google Groups "NWRUG" 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/nwrug-members?hl=en.
