Hello,
I'm developing a form aplication that need to save a money information
about the user.
My cforms definition looks like this:
<fd:field state="active" required="true" id="monetari">
<fd:datatype base="decimal">
<fd:convertor variant="number" type="formatting">
<fd:patterns>
<fd:pattern>#,###.##</fd:pattern>
</fd:patterns>
</fd:convertor>
</fd:datatype>
<fd:label>Money</fd:label>
<fd:help>Money Money</fd:help>
</fd:field>
and my cfoms binding:
<fb:value path="[EMAIL PROTECTED]'monetari']/VALORS_CAMP/VALOR" id="monetari">
<fd:datatype base="decimal">
<fd:convertor type="formatting">
<fd:patterns>
<fd:pattern>#,###.##</fd:pattern>
</fd:patterns>
</fd:convertor>
</fd:datatype>
</fb:value>
It's so simple, that have to work fine. But when i look the XML of the
binding that inserts to the DB, the value of the field is this:
<VALOR>1234.98000000000001818989403545856475830078125</VALOR>
the original value is 1234,98
How i can solve this?. Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]