Skip to main content

parseDouble (Function)

This function returns the double value of the string received.

Syntax

<DOUBLE> math:parseDouble(<STRING> p1)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
p1The value that should be converted into a double value.STRINGNoYes

Example 1

CREATE STREAM InValueStream (inValue string);

insert into OutMediationStream
select math:parseDouble(inValue) as output
from InValueStream;

If the inValue in the input stream holds a value, this function converts it into the corresponding double value and directs it to the output stream, OutMediationStream. For example, parseDouble("123") returns 123.0.