Discard the fractional part of a number.
returnedNum = truncate(numFlt)
returnedNum - type: number
numFlt - type: float
The given number with its fractional part removed.
Analogous to the trunc function in C/C++. Rounds toward zero, so truncate(-3.7) is -3, whereas floor(-3.7) is -4.
@CODE
"output.txt" << truncate(3.7) << "\n";
@@CODE
Outputs:
3