IsRealNumber (AnyValue)

Name

IsRealNumber (Any Value)

Syntax

IsRealNumber (Any value)

Purpose

To check whether a given value represents a real number.

Description

Returns true if the specified value is a real number. Otherwise returns false.

Return Type

Boolean

Parameters

Value [System.Object] – Value to be checked

Example

In this example, we will pass a string value, not a real number, to the function transformation object using a Variables object.

Where,

value = -√5

In the output window, you can see that the Boolean value, False, has been returned as the specified value is not a real number, rather an irrational value.

Last updated

© Copyright 2023, Astera Software