[SciPy-user] Format numbers as with Matlab format command ?

Reckoner reckoner@gmail....
Tue Oct 16 15:01:19 CDT 2007


Matlab has a "format" command which will format the displayed numbers to
show a fixed
precision or  number of digits. Does Ipython/scipy have anything similar?

For example, in Matlab,

» format compact
» pi
ans =
    3.1416
» format long
» pi
ans =
   3.14159265358979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071016/8829e8cf/attachment.html 


More information about the SciPy-user mailing list