dart:math
Import dart:math for sqrt, pow, min, max, pi and Random.
Example
import "dart:math";
print(sqrt(16));
print(pow(2, 10));
print(max(3, 9));
print(pi);
print(Random(42).nextInt(6) < 6);Exercise
Square root.
(16)Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.