QP School
Basic-256 Integer divisions with values - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: Basic-256 tutorials, examples and exercises (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=10)
+--- Thread: Basic-256 Integer divisions with values (/showthread.php?tid=437)



Basic-256 Integer divisions with values - Qomplainerz - 09-14-2020

We have learned how to divide numbers before, but the results may be unexpected sometimes,
because the result of 4 / 2 will be 2 and the result of 3 / 2 will be 1.5.
In case we always want the result to be a whole number (Integer) we can do the following: