Trunc
The Trunc function truncates a number, removing the fractional part.
Definition
Trunc(valor)参数
| 名称 | 说明 | Data type |
|---|---|---|
| valor | Value to truncate | numeric |
示例
In this example, the truncated value of 24.899 is obtained:
Trunc(24.899)The result is 24 (numeric value).