Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by ikegami (Patriarch)
on Mar 26, 2010 at 22:34 UTC ( [id://831283]=note: print w/replies, xml ) Need Help??


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.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://831283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-03-28 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found