Dart Programming - ceil Method
This property returns the ceiling value, that is the smallest integer greater than or equal to a number.
Syntax
Number.ceil()
Example
void main() {
var a = 2.4;
print("The ceiling value of 2.4 = ${a.ceil()}");
}
It will produce the following output −.
The ceiling value of 2.4 = 3
dart_programming_numbers.htm
Advertisements