Closed adlerjohn closed 3 years ago
Instead of rounding up by converting to float then back to int, do rounding-up integer division directly.
Based on https://stackoverflow.com/a/17974.
Instead of rounding up by converting to float then back to int, do rounding-up integer division directly.
Based on https://stackoverflow.com/a/17974.