Re: == operator acts differently in perl 5.005_03 and 5.8.2
From: Ilya Zakharevich (nospam-abuse_at_ilyaz.org)
Date: 03/22/05
- Previous message: Abro Gaticus: "XML::LibXSLT element tags stripped out"
- In reply to: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Next in thread: Tad McClellan: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Mar 2005 02:05:19 +0000 (UTC)
[A complimentary Cc of this posting was sent to
Anno Siegel
<anno4000@lublin.zrz.tu-berlin.de>], who wrote in article <d1mh4a$2rq$1@mamenchi.zrz.TU-Berlin.DE>:
> perl -e 'printf "%.24f %.24f\n", 2.2e-7, 0.22e-6'
>
> prints
>
> 0.000000219999999999999985 0.000000220000000000000011
Can you explain why this is not considered as a bug in CRTL? Should
not string-to-double conversion return the closest "double-precision
number" to the real number represented by the input? So the second
number should be returned in both cases?
Puzzled,
Ilya
- Previous message: Abro Gaticus: "XML::LibXSLT element tags stripped out"
- In reply to: Anno Siegel: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Next in thread: Tad McClellan: "Re: == operator acts differently in perl 5.005_03 and 5.8.2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|