You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2003/04/02 21:16:18 UTC

Datatype question

Is the exponent in a float or double type, base 2 or it is base 10. 2^X or
10^X.

The schema spec says "100" and "1.0E2" are the same .
At the same time it also says the float consists of the values m × 2^e
Can someone clarify which definition is correct.
Thanks
Kiran




 


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Datatype question

Posted by PeiYong Zhang <pe...@ca.ibm.com>.
Image people write a binary number in a check. Obviously base 10 is a more
natural way. The same goes to schema/instance document author.

Rgds,
PeiYong

----- Original Message -----
From: "Bagepalli, Kiran" <kb...@informatica.com>
To: <xe...@xml.apache.org>
Sent: Wednesday, April 02, 2003 2:16 PM
Subject: Datatype question


Is the exponent in a float or double type, base 2 or it is base 10. 2^X or
10^X.

The schema spec says "100" and "1.0E2" are the same .
At the same time it also says the float consists of the values m × 2^e
Can someone clarify which definition is correct.
Thanks
Kiran







---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org