henrik has asked for the wisdom of the Perl Monks concerning the following question:
in my computer, it works;but another computer it doesn't. i take "Argument "0,015233304" isn't numeric in sprintf at C:/perl2/site/lib/Math/Round/" error. when I add 0 to theese strings. the error message is gone .but still it's rounding to 0.00000 or 1.0000 or sth like that. thanks for your help.my $rnd=Math::Round::Var->new (0.001); $frsmt=@mtbf_data[3]; $rounded_percent_frsmt=$rnd->round($percent_frsmt);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: argument isn't numeric in sprintf
by Corion (Patriarch) on Jul 19, 2007 at 12:27 UTC | |
by jwkrahn (Abbot) on Jul 19, 2007 at 19:49 UTC | |
by henrik (Initiate) on Jul 19, 2007 at 13:00 UTC |