Round Toward -Infinity Function

Owning Palette: Numeric VIs and Functions

Requires: Base Development System

Truncates the input to the next lowest integer.

For example, if the input is 3.8, the result is 3. If the input is –3.8, the result is –4. The connector pane displays the default data types for this polymorphic function.

Example

 Add to the block diagram  Find on the palette
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
floor(x): largest int <= x is the resulting lowest integer, closest to x. If the input is a time stamp value, the function rounds to the previous second. When x is of the form x = a + bi, that is, when x is complex, the function returns a complex number defined by the next lowest integers to the real and imaginary parts of x. The following equation defines floor(x): largest int <= x:

floor(x) = floor(a) + i floor(b)

Example

Refer to the Numeric Functions VI in the labview\examples\Numerics directory for an example of using the Round Toward -Infinity function.

 Open example  Find related examples