I've observed that when result is displayed using "%.5f" this problem
occurs. If result is displayed using "%.3f" the output is 555.555, and for
"%.4f" the output is proper 555.5550. Also, this problem happens with 1,5,7
and 9 numbers when only. i.e. when the values given like 555.111 ,
555.555, 555.777 and 555.999 this serialization problem occurs and for
other numbers it works fine.
Regards
Manohar
"Fred Preston
(JIRA)"
<[EMAIL PROTECTED] To
ache.org> [email protected]
cc
09/28/2005 04:21
PM Subject
[jira] Created: (AXISCPP-838) The
serialisation of 555.555 as a float
Please respond to produces a value of 555.554993 on
"Apache AXIS C the wire.
Developers List"
The serialisation of 555.555 as a float produces a value of 555.554993 on
the wire.
-----------------------------------------------------------------------------------
Key: AXISCPP-838
URL: http://issues.apache.org/jira/browse/AXISCPP-838
Project: Axis-C++
Type: Bug
Components: Serialization
Environment: n/a
Reporter: Fred Preston
Using the UnitTest_XSD_float test. If you change the code as follows:-
Was
[40]// Test non-nillable element
[41] xsd__float result =
ws->asNonNillableElement((xsd__float)35.353588);
Now
[40]// Test non-nillable element
[41] xsd__float result =
ws->asNonNillableElement((xsd__float)555.555);
Then on the wire you get:-
<nonNillableElement>555.554993</nonNillableElement>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira