Differentiate between the round() and floor() functions with the help of suitable example.
Answers
Answered by
9
Mat.floor() will always round down ie., it returns LESSER integer. While round() will return the NEAREST integer
For ex, round(2.8) = 3 but floor(2.8) = 2
simren471:
hlo
Similar questions
History,
6 months ago
Biology,
6 months ago
English,
6 months ago
Biology,
1 year ago
Environmental Sciences,
1 year ago