[Numpy-discussion] Rounding the decimal part of a real number

dileep kunjaai dileepkunjaai at gmail.com
Wed Apr 6 09:14:18 EDT 2011


Dear sir,
 Is there any function for rounding the real number, for "n" (say) decimal
places:
Example:
 Let X= 6.9867349234888211237767867863478728314...
but i need only 4 decimal position.
That is the answer should be..

>>>answer=6.9867


-- 
DILEEPKUMAR. R
J R F, IIT DELHI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110406/3f1a694a/attachment.html>


More information about the NumPy-Discussion mailing list