[SciPy-user] Print number of significant digits ?

Stef Mientki S.Mientki at ru.nl
Fri Jun 15 05:44:19 EDT 2007


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


thanks,
Stef Mientki

Kamer van Koophandel - handelsregister 41055629  / Netherlands Chamber of Commerce - trade register 41055629





More information about the SciPy-User mailing list