When I run the following code:
for x in np.arange(0, 1, 0.1):
print(x)
I get the following output?
0.0
0.1
0.2
0.30000000000000004
0.4
0.5
0.6000000000000001
0.7000000000000001
0.8
0.9
Why python does not display the numbers as expected? Is there any way to make python display the numbers as expected (i.e., 0.1, 0.2, 0.3, etc.)?