Craig White wrote: [...] > NoMethodError: undefined method `to_fl' for > #<BigDecimal:b794c0fc,'0.115E1',8(12)> > from (irb):30 > from :0 > > How do I get the float value of 'big decimal' ? >
Perhaps you should have checked the class documentation for BigDecimal (part of the Ruby standard library). If I remember correctly, BigDecimal#to_f will do what you want. to_f is the standard name for such methods; to_fl is idiosyncratic, and will cause problems if the consumers of your API expect to_f. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] > Craig -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

