floor(3 / .1) == 30
int(3 / .1) == 30
3 // .1 == 29
Why is this? Should I be careful when using // then? I have always assumed it is the same as int(x / y)...
Similarly found this for .1 .01 etc.
floor(3 / .1) == 30
int(3 / .1) == 30
3 // .1 == 29
Why is this? Should I be careful when using // then? I have always assumed it is the same as int(x / y)...
Similarly found this for .1 .01 etc.