Programmer Guide/SPU Reference/TRUNC: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

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