I know how to round up to the number base 10 but I do not understand here, "multiple of 4"?
and the Question is "round 0xDEA24A20 up to multiple of 4" it is the base 16 not 10.
Could anyone give me some hint?
I know how to round up to the number base 10 but I do not understand here, "multiple of 4"?
and the Question is "round 0xDEA24A20 up to multiple of 4" it is the base 16 not 10.
Could anyone give me some hint?
Suppose the number in question is labeled x:
Let's use 50 as an example.
x = 50
y = 50 // 4 = 12
z = 50 - 48 = 2
So the result is 4y + 4, which equals 52.