Sass FunctionsLesson 10Free preview
Sass Numeric
This lesson is part of SASS · All levels
Summary
Sass numerics help with mathematical calculations and numerical derivations, such as percentage, round, ceil, floor, abs, min, and max. The percentage value is often used in fluid layouts with calc or other functions. With this, complicated calculations can be moved from the CSS runtime to the compilation stage.
Key points
- Percentage converts the ratio to a percentage
- Round, ceiling, and floor performing upward, downward, or nearest drilling
- Min and max take the smallest or largest value of some of the arguments
- The results of the calculations are final when the file is compiled.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.