Trunc

Syntax

Trunc(Input: Variant, Precision: Variant)

Parameters

Input. Variable

Precision. The quantity of decimal places, to which the number should be truncated:

Description

It truncates variable points to the specified number of decimal places.

Example

Formula Result Application
= Trunc({Brazil|BCA},2)

Brazil|BCA factor observations are truncated to two decimal places.

It can be used in formulas of calculated series of time series database and model formulas of modeling container that is a child of the time series database.
= Trunc(X1,0)

X1 factor points are truncated to nearest integer.

It can be used in model formulas of modeling container.
= Trunc(5.978,1)

5.9

It can be used in formulas of calculated series of time series database and modeling container models.

See also:

Functions Available in Expression Editor │ Arithmetic FunctionsIModelling.Trunc