Back to Math
trunc
Truncate toward zero.
Syntax
trunc(x) → Integer part of x (toward zero)
Backends
TypeScript
Description
Truncate toward zero.
Parameters
| Name | Description |
|---|---|
| x | Input value |
Returns
Integer part of x (toward zero)