PostgreSQL数値関数CEIL
ABS

CEIL数値関数

FLOOR

切り上げた整数を返します。

構文

CEIL(x)

使用例

下記の値を入力するとサンプルに即時反映されます。

total_amount
rounded_up
orders
SELECT CEIL(total_amount / 10.0) * 10 AS rounded_up
FROM orders;