in reply to bitwise operators

what's your result if you do "42" & "4"? This may answer the zero padding.

How big are your real numbers? Perl can handle some really large numbers without breaking sweat, so unless you're after really, really, really high precision, I'd stick to doing it numerically...

--
RatArsed

Replies are listed 'Best First'.
Re: Re: bitwise operators
by Eradicatore (Monk) on Jul 18, 2001 at 19:18 UTC
    Hmm, "42" & "4" comes out as 4, so I guess its padding on the right side?? That seems odd, but oh well. Any idea on the hex digits, and why I can't use them (a-f)?

    Justin Eltoft

      I haven't tested this, but I expect it just does a bitwise comparison on the characters -- so "F" & "8" != "8"

      --
      RatArsed