% python
Python 3.9.9
>>> print(0.1 + 0.2)
0.30000000000000004
>>> print(0.1 * 0.2)
0.020000000000000004
>>> print(0.3 / 0.1)
2.9999999999999996
>>> print(0.3 / 0.1 * 0.01)
0.029999999999999995
>>> print(0.3 / 0.1 * 0.00001)
2.9999999999999997e-05
>>> print(0.3 / 0.1)
2.9999999999999996
>>> print(0.3 / 0.1 * 0.1)
0.3
>>> print(0.3 / 0.1 * 0.01)
0.029999999999999995
>>> print(0.3 / 0.1 * 0.001)
0.0029999999999999996
>>> print(0.3 / 0.1 * 0.0001)
0.0003
>>> print(0.3 / 0.1 * 0.00001)
2.9999999999999997e-05
>>> print(0.3 / 0.1 * 0.000001)
2.9999999999999992e-06
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme