in reply to Re^4: negative numbers when doing multiplications? (float++)
in thread negative numbers when doing multiplications?

Part of the problem here may also be the printf "%d".

Yes, as I recently explained. Solution included.

  • Comment on Re^5: negative numbers when doing multiplications? (float++)

Replies are listed 'Best First'.
Re^6: negative numbers when doing multiplications? (float++)
by almut (Canon) on Mar 26, 2010 at 22:50 UTC

    ...which made me wonder why printf "%d" (apparently) did work for tye — I''m assuming he used a 32-bit perl, because personally I cannot replicate the issue with use integer on any of the 64-bit perls that I tried.

      Good point. I think he has a 64-bit Perl and didn't do a control test.