Skip to main content
Version: v4.22

round

...

number.round()
time.round(unit:duration)
duration.round(unit:duration)

Description

Examples

3.4.round() == 3
3.5.round() == 4
-3.4.round() == -3

42min.round(1h) == 1h
2024-08-23.round(1y) == 2025-01-01