[Numpy-discussion] How to fix this problem? np.arange(0,20.01,0.01)
The last element of "np.arange(0,20.01,0.01)" is 20.01 in my python result. Is this numpy error ? ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/m
[Numpy-discussion] Re: How to fix this problem? np.arange(0,20.01,0.01)
On 3/4/23 18:11, sideri...@gmail.com wrote: The last element of "np.arange(0,20.01,0.01)" is 20.01 in my python result. Is this numpy error ? ___ This is due to inaccurate float value representation. The documentation for arange states: "When us