Complete the code to calculate the square root of 16 using sass:math.
@use "sass:math"; $result: math.[1](16);
The math.sqrt() function returns the square root of a number. Here, it calculates the square root of 16, which is 4.
Complete the code to calculate 2 raised to the power of 3 using sass:math.
@use "sass:math"; $result: math.[1](2, 3);
The math.pow(base, exponent) function raises the base to the power of the exponent. Here, 23 equals 8.
Fix the error in the code to get the absolute value of -10 using sass:math.
@use "sass:math"; $value: math.[1](-10);
The math.abs() function returns the absolute value of a number, turning negative numbers positive.
Fill both blanks to create a map of numbers and their rounded values using sass:math.
@use "sass:math"; $numbers: (1.2, 2.5, 3.7); $rounded: ([1]: math.[2](1.2), 2.5: math.round(2.5));
The first key in the map is the number 1.2, and the value is its rounded value using math.round(1.2). The second pair uses 2.5 as key and rounds it similarly.
Fill all three blanks to create a map of numbers and their square roots using sass:math.
@use "sass:math"; $values: ([1]: math.[2](9), [3]: math.sqrt(16));
The map keys are descriptive names 'nine' and 'four'. The values are the square roots of 9 and 16 using math.sqrt().