Programmer Guide/SPU Reference/ROUND: 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

ROUND

Usage:

ROUND a

Inputs:
a number or vector
Outputs:
y number or vector (same type as a)
Function:

Convert input a to integer. The number is rounded according to the fractional part.

if a is a number: y = Int(a + 1/2)

if a is a vector: y[i] = Int(a[i] + 1/2)

The output y|y[i] is a float number|vector with integer value|s

Navigation menu

Personal tools