TRUNC
Jump to navigation
Jump to search
TRUNC
Usage:
TRUNC a
Inputs:
a | number or vector |
Outputs:
y | number or vector (same type as a) |
Function:
Truncate the fractional part of a.
if a is a number: | y = Int(a) |
if a is a vector: | y[i] = Int(a[i]) |