Describe the bug
when trying to round a float value 7.84 to the nearest 0.1 if gives 7.8000000000001
To Reproduce
Steps to reproduce the behavior:
from statista.tools import Tools
value = 7.84
rounded = Tools.round(value, 0.1)
print(rounded)
# 7.8000000000000001
Expected behavior
it should return 7.8
Desktop (please complete the following information):
- OS: Windows
- Version 0.6.1
Describe the bug
when trying to round a float value
7.84to the nearest0.1if gives7.8000000000001To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should return
7.8Desktop (please complete the following information):