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

2011-04-06 Thread dileep kunjaai
Thank you sir... thank you very much. On Wed, Apr 6, 2011 at 9:36 PM, Christopher Barker wrote: > On 4/6/11 6:24 AM, Alan G Isaac wrote: > > http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html > > simple enough, of course, but just to be clear: > > In [1

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

2011-04-06 Thread Christopher Barker
On 4/6/11 6:24 AM, Alan G Isaac wrote: > http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html simple enough, of course, but just to be clear: In [108]: np.round(1.23456789, 3) Out[108]: 1.2351 so the number is rounded to the requested number of decimal places, but t

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

2011-04-06 Thread Alan G Isaac
On 4/6/2011 9:14 AM, dileep kunjaai wrote: > Is there any function for rounding the real number, for "n" (say) decimal > places: http://www.google.com/search?q=numpy+round produces http://docs.scipy.org/doc/numpy/reference/generated/numpy.round_.html Cheers, Alan Isaac

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

2011-04-06 Thread dileep kunjaai
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 ___