[SciPy-user] Print number of significant digits ?

Steve Schmerler elcorto@gmx....
Fri Jun 15 05:02:02 CDT 2007


Stef Mientki wrote:
> hello,
> 
> is there a simple way (some flag or something like that),
> in which you can limit the number of significant digits,
> when using the plain print statement ?
> 
> so that you get an output like this:
> 
>  >>> print pi
> 3.14
> 
> 
http://docs.python.org/tut/node9.html#SECTION009100000000000000000
http://docs.python.org/lib/typesseq-strings.html



-- 
cheers,
steve

I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams



More information about the SciPy-user mailing list