type
REAL
PostgreSQL REAL is approximate single-precision floating point. Avoid relying on exact decimal equality for computed measurements. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
REALWorking Example
Example Snippetsql
SELECT CAST(CAST(1.5 AS REAL) * 2 AS INTEGER);