Hello! Please explain me why
numpy.array([1/5])[0] == 0.2
is False but
np.array([1/5.])[0] == 0.2
is True. What should I do to get true at first line of code?
Thanks a lot.
Hello! Please explain me why
numpy.array([1/5])[0] == 0.2
is False but
np.array([1/5.])[0] == 0.2
is True. What should I do to get true at first line of code?
Thanks a lot.
![]() | 2 | No.2 Revision |
Hello! Please explain me why
numpy.array([1/5])[0] == 0.2
is False but
np.array([1/5.])[0] == 0.2
is True. At 2nd line of code there is point after 5.
What should I do to get true at first line of code?
Thanks a lot.
![]() | 3 | np --> numpy |
Hello! Please explain me why
numpy.array([1/5])[0] == 0.2
is False but
np.array([1/5.])[0] numpy.array([1/5.])[0] == 0.2
is True. At 2nd line of code there is point after 5.
What should I do to get true at first line of code?
Thanks a lot.
Hello! Please explain me why
numpy.array([1/5])[0] == 0.2
is False but
numpy.array([1/5.])[0] == 0.2
is True. At 2nd line of code there is point after 5.
What should I do to get true at first line of code?
Thanks a lot.