nerdamer.trunc(x: ExpressionInput): Expression
Truncates a number toward zero.
Numeric inputs discard their fractional part without changing the sign of the
integer portion. Symbolic inputs remain unevaluated.
Returns
Expression — The integer portion of `x`, or symbolic `trunc(x)`.
Examples
trunc('3.7').text() // "3"
trunc('-2.7').text() // "-2"
trunc('x').text() // "trunc(x)"