Jorge Almeida am Dienstag, 12. Juli 2005 09.26:
> Is there some way to really round a number to a given number of digits
> after the point?

Just as a sidenote to the help provided by others:

In some cases, the usual rounding of a ending 5 upwards 
(3.5 => 4, 3.45 => 3.5 etc.) 
can give an unwanted systematic bias to data. 

In those cases, a rounding up- or downwards with a probability of 0.5 each can 
be appropriate, f.e. 
3.45 => sometimes 3.4, sometimes 3.5


joe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to