Closed Uzver123 closed 1 year ago
If i do like 1000/3 it outputs 333 not 333.33333
then if i do (1000/3)*3 i am getting 999, not 1000
Try using decimal point, e.g. 1000/3.0 or 1000./3 Both numbers are integers, so integer division is used.
Yep did just that and it works.
If i do like 1000/3 it outputs 333 not 333.33333
then if i do (1000/3)*3 i am getting 999, not 1000