Re: [xslt] floating point conversion
- From: Phil Shafer <phil juniper net>
- To: The Gnome XSLT library mailing-list <xslt gnome org>, Vincent Lefevre <vincent+gnome vinc17 org>
- Subject: Re: [xslt] floating point conversion
- Date: Sat, 11 Sep 2010 15:55:46 -0400
Vincent Lefevre writes:
>I fear that's not sufficient. A few lines above, the multiplications
>by 10 and additions introduce rounding errors for 17 digits and more.
>An integer just below a rounding boundary will probably not be rounded
>correctly.
[repeating my bugzilla comment]
We can just use strtod(), which handle both my fractional issue and
your big number issue perfectly. Unless there are objections, I'll
redo the patch on Monday.
Thanks,
Phil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]