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

Re^10: All Calculations Done with One Variable Give Integer Answers

by hdb (Monsignor)
on Sep 24, 2013 at 06:43 UTC ( [id://1055448]=note: print w/replies, xml ) Need Help??


in reply to Re^9: All Calculations Done with One Variable Give Integer Answers
in thread All Calculations Done with One Variable Give Integer Answers

In the test code you have posted IntTest.pm, if you change your constants 1900 and 60 to 1900.0 and 60.0, your problem is fixed as well. This is because use Math::BigInt ':constant'; only applies to integer constants. This could be one way to limit the scope.

Replies are listed 'Best First'.
Re^11: All Calculations Done with One Variable Give Integer Answers
by HalNineThousand (Beadle) on Sep 24, 2013 at 06:54 UTC
    Thanks! That's a simple fix I can make.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found