[Bioperl-l] perl question

Sendu Bala bix at sendu.me.uk
Mon Nov 5 07:47:17 EST 2007

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?

Please don't use this list to ask general Perl questions.
See these instead:


$rounded = sprintf("%.3f", $number);

More information about the Bioperl-l mailing list