Regular |
 |
Joined: Fri Sep 17, 2004 10:51 am Posts: 61 Location: Rimini, Italy
|
I've the need to format the output of a BigDecimal field mapped in this way:
[code]
<property
name="price"
type="java.math.BigDecimal"
scale="2"
formula="PREZZO(...)"
/>
[code]
The output of the .toString() method doesn't include the final zero ( 20.1 instead of 20.10 ). Normally, setting the scale of the BigDecimal to 2 solves the problem, and I thought this can be accomplished by using scale="" field.
But this doesn't seem to work. For what the scale field is used ?
It's not described in the docs...
_________________ --
Marco
|
|