type
FLOAT
In PostgreSQL p specifies binary precision; 1–24 selects REAL and 25–53 selects DOUBLE PRECISION. Other engines differ. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
FLOAT(p)Working Example
Example Snippetsql
SELECT CAST(CAST(1.25 AS FLOAT(24)) * 4 AS INTEGER);