trunc() Function
This function may not be compatible with all features of Appian. For details, see the Feature Compatibility section below.

Function

trunc( value, numberOfDecimals )

Truncates a decimal number to the specified number of places after the decimal point.

Parameters

Keyword Type Description

value

Decimal

A decimal number.

numberOfDecimals

Number

The number of places after the decimal point to which the number should be truncated.

Returns

Decimal

Usage considerations

If the numberOfDecimals parameter is not specified, a default value of 0 is used and the decimal number is truncated to just its integer value.

Examples

trunc(7.3675,2) returns 7.36

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Custom Record Field Expressions Compatible
Open in Github Built: Mon, Aug 08, 2022 (02:46:26 PM)

On This Page

FEEDBACK