fields icon indicating copy to clipboard operation
fields copied to clipboard

Double values are truncated /rounded

Open anti43 opened this issue 7 years ago • 2 comments

When defining a property type 'double', the resulting scaffolding forms will display only 3 decimals of it, and, even worse, when editing the prefilled value will be rounded and not the value in the database.

anti43 avatar Jul 18 '17 10:07 anti43

I have the same issue, but with BigDecimal. If you specific the scale of say 18 in the domain class (e.g. to support ETH), it truncates/rounds everything to 3dp instead of 18 (e.g. using <f:table> and <f:display>. In theory, I could override something as a work around, but I have no idea what should go in the overridden template, and there seems to be no examples on the web.

nutmix avatar Feb 11 '19 09:02 nutmix

Any update on this ticket? Its been more than a year I think :(

rgogulakrishnan avatar May 13 '20 12:05 rgogulakrishnan