On Fri, Dec 12, 2008 at 2:16 PM, bennibu
<[email protected]> wrote:
> p = ArticlePrice.new(:net => 2.22)
> p.net.to_s
>  => "0.222E1"

This seems correct to, 2.22 == 0.222E1 in a scientific notation. You
can override BigDecimal#to_s if you want another representation, or
use a custom method to display it.

-- 
Regards,

Dirkjan Bussink

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to