MENU
Number
percentage($number) | Converts a unitless number to a percentage. |
round($number) | Rounds a number to the nearest whole number. |
ceil($number) | Rounds a number up to the next whole number. |
floor($number) | Rounds a number down to the previous whole number. |
abs($number) | Returns the absolute value of a number. |
min($numbers…) | Finds the minimum of several numbers. |
max($numbers…) | Finds the maximum of several numbers. |
random([$limit]) | Returns a random number. |
You may use + to add a unit at the end of a number.
div {
width: percentage(max(random(100),random(100))/100);
}
div { width: 48%; }