RE: [xml] Getting crazy with float parsing
- From: "Igor Zlatkovic" <izlatkovic daenet de>
- To: "Richard Jinks" <cyberthymia yahoo co uk>, <xml gnome org>
- Subject: RE: [xml] Getting crazy with float parsing
- Date: Fri, 10 May 2002 11:21:43 +0200
But if Trio isn't used, then some other generic floating
point library is
needed.
As I've found out testing XPath expressions, the native
support for floats
provided by the compilers is highly variable especially with (but not
limited to)
+ / - Infinity and NaN. A library like Trio is required to provide
consistancy
across different compilers and platforms
This is what trio is doing in libxml now.
Can Trio not be fixed to improve it's accuracy rather than removing it
altogether?
I would not remove it altogether, it does a good job regarding
Infinities and NaNs. Its floating-point -> string accuracy can probably
be improved. However, I observe that people prefer IEEE 754 format to
any other alternative, no matter how much more accurate that alternative
may be.
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]