Are you looking for something like this? property :exchange_rate, BigDecimal, :precision => 10, :scale => 2, :default => 1
George On Oct 28, 7:49 am, Zhi-Qiang Lei <[email protected]> wrote: > Dear All, > > I'm using Decimal property to store my money amount. So I don't want the > digits behind float dot to be longer than 2 bits. Is there a option to > control this? Thanks. > > Zhi-Qiang Lei > [email protected] -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
