isFinite

Summary

Checks if the value is finite.

Usage

public bool isFinite()

Returns

true if the value is finite and false if the value is infinity.

Description

Checks if the System.Double value is finite (not infinity).

Examples

Basic Usage
1
2
3
4
5
import System;
 
Console.log(Double.POSITIVE_INFINITY.isFinite()); // false
Console.log(Double.NEGATIVE_INFINITY.isFinite()); // false
Console.log(100D.isFinite()); // true

Share

HTML | BBCode | Direct Link