in reply to Perl is ignoring fractional part sometimes
With this change it works on my system (perl 5.24.0)
I'd guess it's something in the number/string duality in fetching
values with -textvariable
sub calc { my $t = $scale; $xmax = $x * $t; $ymax = $y * $t; $results = sprintf("Calculated X-max=%8.4f, Y-Max=%8.4f",$xmax,$ymax +); print "$x, $y, $scale, $xmax, $ymax\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl is ignoring fractional part sometimes
by jinnicky (Sexton) on Jul 18, 2016 at 03:01 UTC |