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

  • Next message: Bob Walton: "Re: Perl ODBC complex query example needed"
    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


  • Next message: Bob Walton: "Re: Perl ODBC complex query example needed"

    Relevant Pages

    • Re: A Problem With GD
      ... thinking I was "blaming mistakes". ... I am presently attempting to track down the bug in Mr. Boutell's source code. ... even though the truecolor flag has already been set - it is being ignored somewhere in the code and that code is overwritting the truecolor image thinking that it is writing out GIF information into the image. ... your mistake is not posting code in the first place. ...
      (comp.lang.perl.misc)
    • Re: Problem with email attachment, 1 becomes 10
      ... My CV should be attached as a pdf-file. ... One piece of advice which has been useful to me which I learnt from the posting guidelines for this group is, before posting, to always try to reduce the problem to the minimum possible, let's say ten or twenty lines of code: ... In the case of your program there are two big chunks: first, lots of stuff involving reading lines from the database, which is where I suspect the problem has occurred, probably some kind of slip-up, but I can't prove this because I don't have the database available, and then there is an almost separate piece of code which involves sending a mail with an attachment, which might be where the bug happened, although I think it's unlikely. ... I have repeatedly had problems in Perl which I thought were incredibly difficult, ended up frustrated enough to want to post them here, and in the business of reducing them into a short newsgroup post as described, I ended up surprising myself by working out what the bug was without having to post it. ...
      (comp.lang.perl.misc)
    • Re: OE6 - No Response
      ... It depends on what the bug was. ... They probably just blocked anybody who uses OE from posting. ... >> You may need to check with the news server administrator to see if the ... >>>> to find Hidden or System files. ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • Re: looking for obsolete part
      ... > Bug. ... > |> who tried to resolder/rework them, but no luck. ... Also try looking and posting ... > Thanks for the advice TC. ...
      (rec.autos.makers.vw.aircooled)
    • Re: reliability?
      ... Bingjie Miao on the optimizer team tells me this bug was indeed fixed ... He already sent a reply posting via a moderated feed, ... broken for particular sysmaster tables that work correctly for other ...
      (comp.databases.informix)