Number isFinite Property


Advertisements

The property returns a Boolean value true if the number is not a NaN or positive infinity or negative infinity.

Syntax

num.isFinite

Example

void main() { 
   int n = 5000; 
   print(n.isFinite); 
}  

It will produce the following output

true
dart_programming_numbers.htm
Advertisements