Which Sass function is used to convert a number to a percentage?

32. Which Sass function is used to convert a number to a percentage?

  1. percentage(number)
  2. perc(number)
  3. getpercentage(number)
  4. getperc(number)

Answer: A) percentage(number)

Explanation:

The percentage(number) function is used to convert a number to a percentage.

Example:

percentage(4.5)
Result: 450

Comments and Discussions!

Load comments ↻






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