I don't understand why this happens, value l/m
does not get truncated to two decimals after the dot...
root@OpenWrt:~# python3
Python 3.7.4 (default, Sep 15 2019, 18:13:03)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> l = round((69.2222222/100),2)
>>> print(l)
0.68999999999999995
>>> type(l)
<class 'float'>
>>> m = 69.22222222/100
>>> print(m)
0.69222222220000007
>>> type(m)
<class 'float'>
>>> round(m,2)
0.68999999999999995
This happens on a custom openWRT 18.6 build with (almost) full python3 installation.
Why does that happen?
Am I missing any packages?