Skip to main content

instanceOfDouble (Function)

Checks whether the parameter is an instance of Double or not.

Syntax

<BOOL> instanceOfDouble(<INT|LONG|DOUBLE|FLOAT|STRING|BOOL|OBJECT> arg)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThe parameter to be checked.INT LONG DOUBLE FLOAT STRING BOOL OBJECTNoYes

Example 1

insert into barStream
select instanceOfDouble(value) as state
from fooStream;

This returns true if the value field format is double ex : 56.45.

Example 2

    insert into barStream
select instanceOfDouble(switchState) as state
from fooStream;

If the switchState = true then this returns false as the value is not an instance of the double.