- From: John Schneider <john.schneider@agiledelta.com>
- Date: Thu, 20 Nov 2008 14:34:35 -0800
- To: <innovimax@gmail.com>
- Cc: <public-exi-comments@w3.org>
- Message-ID: <ACB764FDFBAD4B469F49A80B1C83DF85@jcsdell8600>
Mohamed, Thank you for your question regarding the the EXI Float data type representation. One of the advantages of using a base 10 representation is that it avoids rounding issues when moving floating point data between EXI and text XML and between EXI and an application that use the standard XML interfaces. XML, EXI and the standard XML interfaces all use a base 10 representation for floating point numbers, so no rounding issues will occur in these circumstances. You are correct that rounding issues may occur when moving floating point data between EXI and a base 2 representation. These rounding issues will be identical to those that occur moving floating point data between text XML and a base 2 representation, so EXI maintains the same behavior as XML in these cases. As such we avoid introducing any *new* rounding issues. Any work-arounds developed to address rounding issues for text XML will continue to work for EXI. I hope this helps to explain our rationale. Please let us know if you have follow-up questions or comments. Thank you, John AgileDelta, Inc. <http://www.agiledelta.com/> http://www.agiledelta.com From: Innovimax SARL <innovimax@gmail.com <mailto:innovimax@gmail.com?Subject=Re%3A%20%5BEXI%20LC%20comments%5D%20Mapping%20from%20xs%3Afloat%20and%20xs%3Adouble%20to%20exi%3AFloat%20and%20vice%20versa&In-Reply-To=%253C546c6c1c0809191117i477ab4a0y57219ee29eac41e5%40mail.gmail.com%253E&References=%253C546c6c1c0809191117i477ab4a0y57219ee29eac41e5%40mail.gmail.com%253E> > Date: Fri, 19 Sep 2008 20:17:58 +0200 Message-ID: <546c6c1c0809191117i477ab4a0y57219ee29eac41e5@mail.gmail.com> To: public-exi-comments@w3.org <mailto:public-exi-comments@w3.org?Subject=Re%3A%20%5BEXI%20LC%20comments%5D%20Mapping%20from%20xs%3Afloat%20and%20xs%3Adouble%20to%20exi%3AFloat%20and%20vice%20versa&In-Reply-To=%253C546c6c1c0809191117i477ab4a0y57219ee29eac41e5%40mail.gmail.com%253E&References=%253C546c6c1c0809191117i477ab4a0y57219ee29eac41e5%40mail.gmail.com%253E> Dear, The format for double seems richer than IEEE 754 float and double that are respectively used for xs:float and xs:double But the fact that base 10 is used instead of base 2 will imply rounding issues for float and double How do you consider to work around that ? Regards Mohamed ZERGAOUI -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 9 52 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr <http://www.innovimax.fr/> RCS Paris 488.018.631 SARL au capital de 10.000 € CTO, AgileDelta, Inc. <mailto:john.schneider@agiledelta.com> john.schneider@agiledelta.com <http://www.agiledelta.com/> http://www.agiledelta.com w: 425-644-7122 m: 425-503-3403 f: 425-644-7126
Received on Thursday, 20 November 2008 22:38:56 UTC