PostgreSQLNumeric FunctionsTRUNC
ROUND

TRUNCNumeric Functions

MOD

Truncates x to s decimal places.

Syntax

TRUNC(x [, s])

Example

Enter values below to update the example in real time.

truncated
SELECT TRUNC(3.99) AS truncated;  -- 결과: 3