DreamT has asked for the wisdom of the Perl Monks concerning the following question:
my $test = 1.15; my $test2 = ($test - 1) * 100; my $test3 = int($test2); print "test2: $test2\n"; print "test3: $test3\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange int behaviour?
by BrowserUk (Patriarch) on Mar 10, 2015 at 09:20 UTC | |
by DreamT (Pilgrim) on Mar 10, 2015 at 09:26 UTC |