Truncation (trunc)
A number with its fractional part cut off.
How to write it
trunc(x)
- x
- A number. Takes a number.
Examples
trunc(-2.7)In the solver,
Open in the solvertrunc(-2.7)gives-2.
Related functions
- abs
Absolute value of a number, or modulus of a complex one.
- times
Product of numbers: the function form of *.
- arg
Argument of a complex number: its angle in radians.
- subtract
A difference: the function form of -.
- binomial
Binomial coefficient: the ways to choose k items out of n.
- sqrt
Square root; sqrt(x) is the power x^(1/2).