# fix

Version:

Rounds the input elements to the nearest integer towards 0.

## Syntax

c = fix(a)

## a

Numeric scalar or numeric array of any dimension.

## c

Rounded elements of a. c is an array of the same size as a.

## Complex Input

If a is complex, MathScript rounds c with the following equation: c = fix(real(a))+fix(imag(a))*i.

A = [-3.7, -2.5, -1.3, 0, 1.3, 2.5, 3.7]
C = fix(A)

Where This Node Can Run:

Desktop OS: Windows

FPGA: DAQExpress does not support FPGA devices