in reply to Re^2: All Calculations Done with One Variable Give Integer Answers
in thread All Calculations Done with One Variable Give Integer Answers
The line $mins = "$mins.00"; turns the Math::BigInt object into a standard Perl scalar. If you inspect $mins using Data::Dumper before and after $mins = "$mins.00"; you get:
$VAR1 = bless( { 'value' => [ 43200 ], 'sign' => '+' }, 'Math::BigInt' ); $VAR1 = '43200.00';
So (with hindsight!) had you used Data::Dumper as a first step to see what's going on, you would have been told immediately. But this is only with hindsight...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: All Calculations Done with One Variable Give Integer Answers
by marinersk (Priest) on Sep 24, 2013 at 11:24 UTC | |
|
Re^4: All Calculations Done with One Variable Give Integer Answers
by HalNineThousand (Beadle) on Sep 24, 2013 at 06:53 UTC |