Returns the least integer that is not smaller than this number.
Rounds the number towards infinity.
Throws an UnsupportedError if this number is not finite (NaN or an infinity).
print(1.99999.ceil()); // 2 print(2.0.ceil()); // 2 print(2.00001.ceil()); // 3 print((-1.99999).ceil()); // -1 print((-2.0).ceil()); // -2 print((-2.00001).ceil()); // -2
int ceil();
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/double/ceil.html