TRUNC (PQL - xl)
This function removes the specified fractional part of the specified number
- Library: PQL \ Spreadsheet \ Math & Trig
- Compatibility: Any content (regardless of data source) in the Tabulate spreadsheet module
- Solve: This function can be used with the Solve plug-in: both as part of the objective function and constraint functions
Syntax
TRUNC(number, num digits)
Function Arguments
Name | Description | Type | Optional |
number | Number to truncate | Number |
|
num digits | Integer representing the precision; if greater than zero, truncates to the specified number of decimal places; if zero (or not specified), truncate to the nearest whole number; if less than zero, rounds the value left of the decimal to the nearest order of tens | Number |
|
Comments
This function is the same as the Microsoft Excel 'TRUNC' function - using the same inputs, logic and outputs.