Name

string — Converts the input value into a string value.

Syntax

string(boolean)
string(integer)
string(number)
                

The STRING function has the following arguments:

boolean

The boolean value which you want to convert to a string

integer

The integer value which you want to convert to a string

number

The double value which you want to convert to a string

Description

The string function will convert the input value to a string.

If the input is an integer or number type then the value is formated as string type using the default conversion rules.

If the input is a boolean value the function will return 'true' for a true value and 'false' otherwise.

If the input is a string then the value is returned unchanged

Examples

Formula

Description

Result

string(34.66)

String value of double precision number 34.66

'34.66'

string(100)String value of integer 100'100'
string(true)String value of boolean true'true'