[Bioperl-l] perl question

Spiros Denaxas spiros at lokku.com
Mon Nov 5 12:36:36 UTC 2007


Hey,

use the `sprintf` function. More information can be found at ,
http://perldoc.perl.org/functions/sprintf.html.

For more proper rounding, you could use the Math::Round module,
http://search.cpan.org/~grommel/Math-Round-0.05/Round.pm.

hope this helps,
spiros

On 11/5/07, neeti somaiya <neetisomaiya at gmail.com> 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?
>
> --
> -Neeti
> Even my blood says, B positive
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list