[Bioperl-l] perl question

Tim Nugent t.nugent at cs.ucl.ac.uk
Mon Nov 5 07:37:15 EST 2007


Use Math:Round and nearest_ceil:

http://search.cpan.org/~grommel/Math-Round-0.05/Round.pm

neeti somaiya wrote:
> Again a perl question, and maybe a very trivial one.
> How do I terminate a number like 3.1232010098 to only 3 decimal places in
> perl?
>
>   

-- 
Tim Nugent (MRes)
Research Student
Bioinformatics Unit
Department of Computer Science
University College London
Gower Street
London WC1E 6BT
Tel: 020-7679-0410
t.nugent at ucl.ac.uk
http://www.cs.ucl.ac.uk/staff/T.Nugent



More information about the Bioperl-l mailing list