type

DOUBLE PRECISION

Approximate double-precision arithmetic provides more precision than REAL but cannot represent every decimal exactly. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.

Formal Syntax & Structure

sql syntaxsql
DOUBLE PRECISION

Working Example

Example Snippetsql
SELECT CAST(CAST(1.25 AS DOUBLE PRECISION) * 4 AS INTEGER);
SQL Reference