in reply to Re: Bug? 1+1 != 2
in thread Bug? 1+1 != 2

I figured it was along those lines as "eq" worked. Any idea on how Perl decides to format the stringified number? I looked at $# but it says it's depreciated so I would think it lies elsewhere.

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Re: Bug? 1+1 != 2
by ant9000 (Monk) on Jun 19, 2003 at 12:04 UTC
    The internal decision about how Perl "stringifies" floats are quite well described in perlnumber; if you need different conversions, you have to resort to printf and explicit rounding.