Which Sass function is used to round number down to the nearest integer?

29. Which Sass function is used to round number down to the nearest integer?

  1. floor(number)
  2. getfloor(number)
  3. round(number)
  4. rounddown(number)

Answer: A) floor(number)

Explanation:

The floor(number) function is used to round number down to the nearest integer.

Example:

floor(107.76)
Result: 108

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.