j
k
j a
j l
on Tue, May 07, 2002 at 10:30:22AM +0500, Simon wrote:
It's gotta be easy, but I can't find it... How do I reduce the number of decimal places in a variable ???
my $a = 3.141592; my $b = sprintf("%.02f", $a); $b += 2; print $b;
Back to the thread
Back to the list