TO_DOUBLE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functions

Converts an expression to a double-precision floating-point number. For NULL input, the result is NULL.

Syntax

supportedpartialnot supportednot scored

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

Parameters

NameRequiredDescription
exprrequiredAn expression of a numeric, character, or variant type.
formatrequiredIf the expression evaluates to a string, then the function accepts an optional format model. Format models are described at 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 FLOAT data type. If expr is NULL, the function returns NULL.

Usage notes

See also