Re: bizarre math

2005-12-04 Thread Dr.Ruud
Bryan Harris: > I just ran into this today, and have no clue what's going on: > > % perl -e 'print 10-5.5, "\n"' > 4.5 > % perl -e 'print 10-05.5, "\n"' > 55 Nice catch. I would also have assumed that the '.' is stronger that the octal-0. I still think it should be. -- Affijn, Ruud "Gewoon is

Re: bizarre math

2005-12-03 Thread Bryan Harris
>> I just ran into this today, and have no clue what's going on: >> >> % perl -e 'print 10-5.5, "\n"' >> 4.5 >> % perl -e 'print 10-05.5, "\n"' >> 55 >> >> How does 10 minus 5.5 equal 55? Obviously it's the leading zero, but I >> can't think of any reason why it should do that... > > It seems

Re: bizarre math

2005-12-03 Thread Beau E. Cox
Hi Bryan Harris - At 2005-12-03, 19:19:02 you wrote: > > >I just ran into this today, and have no clue what's going on: > >% perl -e 'print 10-5.5, "\n"' >4.5 >% perl -e 'print 10-05.5, "\n"' >55 > >How does 10 minus 5.5 equal 55? Obviously it's the leading zero, but I >can't think of any reaso

bizarre math

2005-12-03 Thread Bryan Harris
I just ran into this today, and have no clue what's going on: % perl -e 'print 10-5.5, "\n"' 4.5 % perl -e 'print 10-05.5, "\n"' 55 How does 10 minus 5.5 equal 55? Obviously it's the leading zero, but I can't think of any reason why it should do that... - B -- To unsubscribe, e-mail: [EMA