Truncate a Number
Truncates a decimal number to a specified precision without rounding.
Overview
This procedure removes digits from a decimal number beyond a specified number of decimal places, effectively shortening the number without rounding it up or down. If no precision is provided, the number is truncated to an integer (zero decimal places).
Syntax
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
Examples
1. Truncate a Number (No Specified Precision)
2. Truncate a Number with Precision 3
3. Truncate a Number with Precision 0
4. Truncate a Negative Decimal
5. Truncate a Number (Alternative Syntax)
Last updated
Was this helpful?