Computer Science, asked by parineetasakshi7709, 1 year ago

Differentiate between the round() and floor() functions with the help of suitable example.

Answers

Answered by RahulRay123
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