Dart Programming – ceil Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
dart programming ceil method

In this guide, we will discuss ceil Method in Dart Programming Language. 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 

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply