how do i use the ffround() function in BigFloat.pm?
i'd try something,but the output is not what i want.here's my code.
for example..i keyed in 22.3..and the output displayed is
+22E+0.can i have some advice..please?
i'd try something,but the output is not what i want.here's my code.
Code:
#!usr\bin\perl
use Math::BigFloat;
print "Enter input:";
$string = <STDIN>;
chomp $string;
$f = Math::BigFloat->new($string);
$value = $f->ffround(zero);
print $value;
for example..i keyed in 22.3..and the output displayed is
+22E+0.can i have some advice..please?