Thanks Derek! I hadn't noticed the "bigDecimal" member of scala.BigDecimal. (I'm still so used to looking for explicit getter methods!) I now have my code do this: Text(String.format("$%,.2f", item.amount.bigDecimal)) instead of my old Text(item.amount.toString) --Andrew Derek Chen-Becker wrote: The BigDecimal value of a MappedDecimal field is Scala's BigDecimal, which itself wraps the Java BigDecimal. At the very least you can use java.text.DecimalFormat to format the underlying java.math.BigDecimal. Let me know if you have any further questions. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [Lift] MappedDecimal question Andrew Scherpbier
- [Lift] Re: MappedDecimal question Derek Chen-Becker
- [Lift] Re: MappedDecimal question Andrew Scherpbier
- [Lift] Re: MappedDecimal question Derek Chen-Becker