PLUS+1 Tools > PLUS+1 GUIDE
Hoe does DIV handle the remainder?
(1/1)
BBarry:
Hi guys this may be a very basic question. I searched and could not find it spelled out anywhere.
How does the DIV function handle remainders (truncate it?) aka always round down to the nearest whole number?
I want to always round a number down and if DIV can do it for me great.
Warmest regards,
Tor:
Hello BBarry,
If you get a decimal number with the regular DIV component, it is truncated to zero decimal digits. 9/2=4 (Not stated/explained in the User Manual).
Then you have the Rounded divide that rounds up or down depending on what the reminder is. 9/2=5 (This is stated/explained in the User Manual).
I hope it helps.
niteRider:
You can use the Modulo component to extract the remainder, too.
BBarry:
Thanks! That is exactly what I was looking for.
Navigation
[0] Message Index
Go to full version