Home »
MCQs »
SASS MCQs
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?
- percentage(number)
- perc(number)
- getpercentage(number)
- 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