Dart Math
dart:math has sqrt, pow, min, max, Random and pi. num has round, floor, ceil and abs.
Example
import 'dart:math';
void main() {
print(sqrt(81));
print(pow(2, 10));
print(max(3, 9));
print(3.14159.toStringAsFixed(2));
}Exercise
Largest of two.
(3, 9)Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.