[xsd-users] xs:double truncation
Aaron Bray ARA/SED
abray at ara.com
Fri Jun 20 11:35:25 EDT 2008
I have the following:
<xs:complexType name="ScalarData">
<xs:attribute name="unit" type="xs:string" use="optional"/>
<xs:attribute name="value" type="xs:double" use="optional"/>
</xs:complexType>
I set value to 3.07391836376424E-30 in code.
When serialized to file I get the value as 0
This is not acceptable. Something is truncating my double value.
Previous XSD version worked (now I am using 3.1)
Jaxb also handles this properly
Do I need to set something in my xsd compiler options?
Suggestions?
More information about the xsd-users
mailing list