ZVON > References > SOAP Reference

Go to standard

float

Standard excerpt:

float corresponds to the IEEE single-precision 32-bit floating point type [IEEE 754-1985]. The basic value space of float consists of the values m * 2^e, where m is an integer whose absolute value is less than 2^24, and e is an integer between -149 and 104, inclusive. In addition to the basic value space described above, the value space of float also contains the following special values: positive and negative zero, positive negative infinity and not-a-number. The order-relation on float is: x < y iff y - x is positive.


Examples:

<SOAP-ENC:float>12.234</SOAP-ENC:float>
<foo xsi:type="SOAP-ENC:float">12.234</foo>
<SOAP-ENC:float>24</SOAP-ENC:float>
<foo xsi:type="SOAP-ENC:float">24</foo>
<SOAP-ENC:float>23.2E9</SOAP-ENC:float>
<foo xsi:type="SOAP-ENC:float">23.2E9</foo>
<SOAP-ENC:float>234.16e-5</SOAP-ENC:float>
<foo xsi:type="SOAP-ENC:float">234.16e-5</foo>
<SOAP-ENC:float>0</SOAP-ENC:float>
<foo xsi:type="SOAP-ENC:float">0</foo>
<SOAP-ENC:float>-0</SOAP-ENC:float> (negative zero)
<foo xsi:type="SOAP-ENC:float">-0</foo>
<SOAP-ENC:float>INF</SOAP-ENC:float> (positive infinity)
<foo xsi:type="SOAP-ENC:float">INF</foo>
<SOAP-ENC:float>-INF</SOAP-ENC:float> (negative infinity)
<foo xsi:type="SOAP-ENC:float">-INF</foo>
<SOAP-ENC:float>NaN</SOAP-ENC:float> (not-a-number)
<foo xsi:type="SOAP-ENC:float">NaN</foo>