Message392192
When using F String with numpy.float32 variable, the output is wrong!
Example code:
```python
import numpy as np
floatNumber = 0.00123
print(f"num:{floatNumber}")
npFloatNumber = np.float32(0.00123)
print(f"num:{npFloatNumber}")
```
The output is:
```
num:0.00123
num:0.001230000052601099
```
As we can see, the value of np.float32 is wrong! |
|
Date |
User |
Action |
Args |
2021-04-28 12:44:15 | PingHGao | set | recipients:
+ PingHGao |
2021-04-28 12:44:15 | PingHGao | set | messageid: <1619613855.19.0.40133405442.issue43966@roundup.psfhosted.org> |
2021-04-28 12:44:15 | PingHGao | link | issue43966 messages |
2021-04-28 12:44:14 | PingHGao | create | |
|