in reply to All Calculations Done with One Variable Give Integer Answers
What is $gap = "$gap.00"; supposed to do? What do you think it does? Are you using the dot to try to concat to establish a two digit decimal field (syntax is wrong) or what?
I ask because I don't see the results you seem to describe in either of these cases:
C:\>perl -E "my $gap = 1.23; $gap = $gap.00; print ($gap + 1.5);" 2.73 # not an integer C:\>perl -E "my $gap = 1; $gap = $gap.00; print ($gap + 1.5);" 11.5 # not even close! And not just BTW, WTF happens h +ere?
I think we need a very small version of your remaining code (say 20 lines or so starting with an assignment to $gap of a typical non-date, numeric value) to know what's going on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: All Calculations Done with One Variable Give Integer Answers
by HalNineThousand (Beadle) on Sep 23, 2013 at 17:50 UTC | |
by ww (Archbishop) on Sep 23, 2013 at 18:03 UTC | |
by marinersk (Priest) on Sep 23, 2013 at 18:13 UTC | |
by HalNineThousand (Beadle) on Sep 23, 2013 at 23:27 UTC | |
by marinersk (Priest) on Sep 23, 2013 at 23:42 UTC | |
| |
by Anonymous Monk on Sep 23, 2013 at 23:50 UTC |