in reply to Re^2: How to use the int-function?
in thread How to use the int-function?
#!/usr/bin/perl use strict; use warnings; my $i = 1.255; my $j = $i * 100 + 0.5; $j *= 10000000; printf "%.0f\n", $j;
outputs
1260000000
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to use the int-function?
by Anonymous Monk on Jan 03, 2011 at 15:53 UTC | |
by kennethk (Abbot) on Jan 03, 2011 at 16:07 UTC | |
by Anonymous Monk on Jan 03, 2011 at 16:25 UTC | |
by ruzam (Curate) on Jan 03, 2011 at 19:30 UTC |