Predefined Functions – trunc
Function name: | trunc – Truncate fractional part |
Synopsis: | trunc(x) |
Input data type | Output data type |
---|---|
real | real |
complex | complex |
quaternion | quaternion |
Description:
The trunc function removes any fractional part from the argument by cutting it off.
If the argument is complex, the function is applied component wise, i.e.:
trunc(z)=trunc(x+iy)=trunc(x)+i*trunc(y)