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

35. Which Sass function is used to round the given number to the nearest integer?

  1. random(number)
  2. random(0,number)
  3. randomize(0,number)
  4. random-number(number)

Answer: A) random(number)

Explanation:

The random(number) function is used to round the given number to the nearest integer.

Example:

round(108.20)
Result: 108
round(108.80)
Result: 109

Comments and Discussions!

Load comments ↻






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