Hi, *.
In my task I have 4 elements.
In the form I need to sum 3 float values and put the result in the 4-th.
The broblem is when I specify float values in some cases I get summed value
with 12-digit tail.
example: 1st value = "10.1", 2nd = "200.1", 3d = "1.1"
and instead of sum = "211.3" calculate produces "211.2999999999999998".
Calculated value is used to in the 5th field in constraint for
equality to value 211.3 --> that is evaluated to false.
Is it the problem of chiba core or jxpath library.
How can I fix it, or at least round the value to 2 digits after point. Please
help!
--
Michael Pavlov
mailto:MIC-B54ZLJp+iVcox3rIn2DAYQ@xxxxxxxxxxxxxxxx
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|