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

ceil (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 = ceil(a)

Description

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

Examples

Inputs

Name Description
a Specifies a real or complex matrix.

Outputs

Name Description
c Returns the rounded elements of a. If a is complex, LabVIEW rounds c using the following equation: c = ceil(real(a))+ceil(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 = ceil(A)

Related Topics

floor
fix
round


Resources


 

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