TRUNC

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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])