Multiple choice

The use of the function floor (d) returns the

  1. value round down to the next integer value

  2. absolute value of d

  3. value round up to the next integer

  4. none of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The floor() function rounds a floating-point value DOWN to the next lower integer. For example, floor(3.7) = 3 and floor(-2.3) = -3. This is different from truncation which simply removes the decimal part.