in reply to (s)printf and push
The reason why your sprintf didn't work is because sprintf was expecting a floating point number as the second argument (that matches %.5f), while you were passing in a string.push @array, sprintf "%.5f\n", $number;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (s)printf and push
by Abigail-II (Bishop) on Sep 30, 2003 at 10:37 UTC | |
|
Re: Re: (s)printf and push
by bart (Canon) on Sep 30, 2003 at 11:35 UTC |