Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Jun 02, 2023
Send us feedback
float
Applies to: Databricks SQL Databricks Runtime
Casts the value expr to FLOAT.
expr
float(expr)
expr: An expression that can be cast to FLOAT.
A FLOAT.
This function is a synonym for CAST(expr AS FLOAT).
CAST(expr AS FLOAT)
See cast function for details.
> SELECT float('5.2'); 5.2
cast function