TO_DECFLOAT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

Converts an expression to a decimal floating-point number (DECFLOAT).

Syntax

supportedpartialnot supportednot scored

TO_DECFLOAT( <expr> [ , '<format>' ] )

Parameters

NameRequiredDescription
exprrequiredAn expression of a numeric, character, or Boolean type.
'format'optionalIf the expression evaluates to a string, the function accepts an optional format model. For more information, see SQL format models. The format model specifies the format of the input string, not the format of the output value.

Returns

This function returns a value of DECFLOAT data type. If expr is NULL, the function returns NULL.

Usage notes

See also