Skip to main content

oct (Function)

This function converts the input parameter p1 to octal.

Syntax

<STRING> math:oct(<INT|LONG> p1)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
p1The value of the parameter whose octal representation should be found.INT LONGNoYes

Example 1

CREATE STREAM InValueStream (inValue long);

insert into OutMediationStream
select math:oct(inValue) as octValue
from InValueStream;

If the inValue in the input stream is given, this function calculates the octal value corresponding to the same and directs it to the output stream, OutMediationStream. For example, oct(99l) returns "143".