Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python3 compatibility: math error compatibility
The way math is handled with typing is completely different in python3. % python2<<EOF x=10 y=8 print((x + (y - 1)) / y * y) EOF 16 python3<<EOF x=10 y=8 print((x + (y - 1)) / y * y) EOF 17.0 So we need to force an integer for the round function as follows and maintain compatibility with python2. python3<<EOF x=10 y=8 print(int((x + (y - 1)) / y) * y) EOF 16 Signed-off-by: Jason Wessel <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information