There is a well-known method of rounding numbers in a mathematical way, that is, without using any functions and procedures. This method looked something like this:
digit = 3.141527; digit = (digit*100)/100; // округление до сотых
But it does not work, I forgot ... If someone knows this method, please prompt.