Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

fix (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

c = fix(a)

Description

Rounds each element of a matrix to the nearest integer towards 0.

Examples

Inputs

Name Description
a Specifies a matrix.

Outputs

Name Description
c Returns the rounded elements of a. If a is complex, LabVIEW rounds c using the following equation: c = fix(real(a))+fix(imag(a))*i. c is a matrix of the same size as a.

Examples

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

Related Topics

ceil
floor
round


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit