floor (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = floor(a)

Description

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

Examples

Inputs

Name Description
a Specifies a numeric scalar, vector, or matrix.

Outputs

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

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes

Examples

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

Related Topics

ceil
fix
round

文章是否对您有帮助?

没有帮助