real class : IsNaN() method

Description

Gets a value that indicates whether this instance value is not a number (NaN).

Syntax

realInstance.IsNaN()

Arguments

None

Return value

ClassDescription
boolA value that indicates whether this instance value is not a number (NaN).

Sample code

//anyReal is a instance of real type.

bool nan = anyReal.IsNaN();

Notes

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

Returns true if instance value evaluates to NaN; otherwise, returns false.

Links for reference

Copyright © Rice All rights reserved.