Hello.
Is there an operator or function in C++ that allows you to divide two numbers and return just the integer part (ie. the number on the left side of the decimal point)? The opposite of the modulus (%) operator!
Examples:
7 / 2 would return the integer 3
14 / 3 would return the integer 4
There should be no rounding up to the nearest integer!
Thanks,
Nikolai.
Is there an operator or function in C++ that allows you to divide two numbers and return just the integer part (ie. the number on the left side of the decimal point)? The opposite of the modulus (%) operator!
Examples:
7 / 2 would return the integer 3
14 / 3 would return the integer 4
There should be no rounding up to the nearest integer!
Thanks,
Nikolai.