Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] Why is it called precisionDecimal? Why isn't it

From: "Michael Kay" <mike@--------.--->
To: "'Costello, Roger L.'" <costello@-----.--->, <xmlschema-dev@--.--->
Date: 6/15/2009 10:36:00 PM
The data type has three interesting characteristics:

* it's decimal rather than binary

* the implementation is typically floating point rather than fixed point

* the precision is part of the value space

If you can find a name that reflects all three characteristics, please
suggest it! But I would suggest that the second is the least important - if
nothing else because a fixed-point implementation is theoretically possible.

PrecisionDouble would be completely misleading because there's nothing
"double" about it, and precisionFloat would be potentially misleading
because some people might assume it indicated some relationship to the
current float type, and to the float type in other well-known languages,
which is binary rather than decimal.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Costello, Roger L.
> Sent: 15 June 2009 19:21
> To: xmlschema-dev@w...
> Subject: [XML Schema 1.1] Why is it called precisionDecimal? 
> Why isn't it called precisionFloat? Or precisionDouble?
> 
> 
> Hi Folks,
> 
> A precisionDecimal value is a decimal value, and its 
> precision is inferred from how it is lexically expressed. 
> Here's a legal precisionDecimal value:
> 
>    3.00e2
> 
> But this is not a legal xs:decimal value. It looks more like 
> a float or double value.
> 
> Why isn't it called precisionFloat, or precisionDouble?
> 
> /Roger




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent