There's a python tutorial on the subject of floating point and rounding.
If you get 10/3 as 3, then that suggests you're using python 2, which has different semantics for floating point division and integer division. I suggest you start using python3 and learn the rules for that version instead.
In python2, the division result depends on the arguments (integer vs floating point). In python3, regular division can always be floating point if necessary. You use a different operator (//) to force integer results.
If you get 10/3 as 3, then that suggests you're using python 2, which has different semantics for floating point division and integer division. I suggest you start using python3 and learn the rules for that version instead.
In python2, the division result depends on the arguments (integer vs floating point). In python3, regular division can always be floating point if necessary. You use a different operator (//) to force integer results.
# python3 >>> 10/3 3.3333333333333335 >>> 10.0/3.0 3.3333333333333335