real class : IsInfinity() method

Description

Gets a value that indicates whether this instance value evaluates to negative or positive infinity.

Syntax

realInstance.IsInfinity()

Arguments

None

Return value

ClassDescription
boolA value that indicates whether this instance value evaluates to negative or positive infinity.

Sample code

//anyReal is a instance of real type.

bool infinity = anyReal.IsInfinity();

Notes

It's a wrapper of the System.Double.IsInfinity(Double).

Returns true if instance value evaluates to positive-infinity or negative-infinity; otherwise, returns false.

Links for reference

Copyright © Rice All rights reserved.