in reply to reducing numbers
use strict; my $number = 83.9774726111 ; print sprintf("%.3f", $number); # produces 83.977
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: reducing numbers
by rob_au (Abbot) on Apr 25, 2003 at 09:37 UTC | |
|
Re: Re: reducing numbers
by Anonymous Monk on Apr 25, 2003 at 13:32 UTC | |
by Anonymous Monk on Apr 25, 2003 at 13:41 UTC |