trinodb/trino

Document `truncate(number, position)` function

Closed

#28,765 opened on Mar 19, 2026

 (3 comments) (0 reactions) (0 assignees)Java (2,678 forks)batch import
good first issueneeds-docs

Repository metrics

Stars
 (9,113 stars)
PR merge metrics
 (Avg merge 5d 9h) (306 merged PRs in 30d)

Description

https://trino.io/docs/current/functions/math.html#truncate documents only truncate(number) truncate(number, position) is currently not documented. It's supported for decimal and number types.

see round docs https://trino.io/docs/current/functions/math.html#round for example

cc @mosabua

Contributor guide