Open
Description
NumPy 1.13.3, Python 3.6.2, Ubuntu 16.04
>>> str(round(1337.09997559, 1))
'1337.1'
>>> f'{round(1337.09997559, 1)}'
'1337.1'
>>> f'{round(np.float32(1337.09997559), 1)}'
'1337.0999755859375'
>>> str(round(np.float32(1337.09997559), 1))
'1337.1'
>>> f'{round(np.float64(1337.09997559), 1)}'
'1337.1'
>>> str(round(np.float64(1337.09997559), 1))
'1337.1'
Metadata
Metadata
Assignees
Labels
No labels