in reply to All Calculations Done with One Variable Give Integer Answers
Hi,
Could you, at some point in your code where $gap is producing this "integer" behaviour, insert the following piece of code:
$gap = "$gap.00";
I suspect that you'll get the same change in behaviour by doing simply:
Rob
Could you, at some point in your code where $gap is producing this "integer" behaviour, insert the following piece of code:
and then provide us with the output of that Dump().use Devel::Peek; Dump($gap);
$gap = "$gap.00";
I suspect that you'll get the same change in behaviour by doing simply:
Cheers,$gap = "$gap";
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: All Calculations Done with One Variable Give Integer Answers
by HalNineThousand (Beadle) on Sep 24, 2013 at 06:09 UTC | |
by hdb (Monsignor) on Sep 24, 2013 at 06:50 UTC | |
by marinersk (Priest) on Sep 24, 2013 at 11:24 UTC | |
by HalNineThousand (Beadle) on Sep 24, 2013 at 06:53 UTC |
In Section
Seekers of Perl Wisdom