Decimal value to roundup

Dear ODK team
I am calculating the decimal date time. the value comes in 3.987655 like that i want to roundup this value to 3 or 4 is this possible.

You can round numbers to a specified number of decimal places (including none) using the XPath round() function. See

Alternatively, if you want to truncate 3.987.. down to 3, you can use the int() function (documented same place)

1 Like