TRUNC

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 17:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump 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])

Navigation menu

Personal tools