Hi, This is probably trivial, but I couldn't find a mention of this anywhere - why do the following 2 code lines produce different results? > perl -e 'printf "%d\n" ,0xffff_ffff' -1 > perl -e 'print 0xffff_ffff , "\n"' 4294967295
Even stranger: > perl -e 'printf "%d\n" ,0x8000_0000' -2147483648 > perl -e 'print 0x8000_0000 , "\n"' 2147483648 > perl -e 'print 0x8000_0000 - 0x1 , "\n"' 2147483647 > perl -e 'printf "%d\n" ,0x8000_0000 - 0x1' 2147483647 This is on a 32bit Linux OS. Thanks, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>