Solution :
The floor and ceiling functions give us the nearest integer up or down.
Suppose x= 2
The Floor of 2 is 2
The Ceiling of 2 is 2
Suppose x= 2.31
The Floor of 2.31 is 2
The Ceiling of 2.31 is 3
what is frac(3.65)?
frac(x) = x − floor(x)
Suppose we find frac(3.65)
frac(x) = x − floor(x)
So: frac(3.65) = 3.65 − floor(3.65) = 3.65 − 3
= 0.65
Comments
Leave a comment