trunc

Truncates the time from a datetime or decimals from a numeric value.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

expr trunc(data)
expr       data

Description

Removes the time information from a datetime value or the decimals from a numeric value.

Example

{
numeric sal;
sal = 56.34;
sal = trunc(sal);
printf(sal);
}
returns 56