Express Numeric Functions

Owning Palette: Arithmetic & Comparison Express VIs

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Express Numeric functions to create and perform arithmetic and complex mathematical operations on numbers and to convert numbers from one data type to another. Use the VIs and functions on the Elementary & Special Functions palette to perform trigonometric and logarithmic functions.

You also can access the following constants from this palette:

Palette ObjectDescription
Absolute ValueReturns the absolute value of the input.
AddComputes the sum of the inputs.
Compound ArithmeticPerforms arithmetic on one or more numeric, array, cluster, or Boolean inputs. To select the operation (Add, Multiply, AND, OR, or XOR), right-click the function and select Change Mode from the shortcut menu. When you select this function from the Numeric palette, the default mode is Add. When you select this function from the Boolean palette, the default mode is OR.
DBL Numeric ConstantUse the DBL numeric constant to pass a double-precision, floating-point numeric value to the block diagram. Set this value by clicking inside the constant with the Operating tool and typing a value.
DecrementSubtracts 1 from the input value.
DivideComputes the quotient of the inputs.
IncrementAdds 1 to the input value.
Machine EpsilonRepresents the round-off error for a floating-point number with a given precision. Use the machine epsilon constant to compare whether two floating-point numbers are equivalent.
MultiplyReturns the product of the inputs.
NegateNegates the input value.
Numeric ConstantUse the numeric constant to pass a numeric value to the block diagram. Set this value by clicking inside the constant with the Operating tool and typing a value.
Random Number (0-1)Produces a double-precision, floating-point number between 0 and 1. The number generated is greater than or equal to 0, but less than 1. The distribution is uniform.
ReciprocalDivides 1 by the input value.
Round To NearestRounds the input to the nearest integer. If the value of the input is midway between two integers, the function returns the nearest even integer.
Round Toward -InfinityTruncates the input to the next lowest integer.
Round Toward +InfinityRounds the input to the next highest integer.
Scale By Power Of 2Multiplies x by 2 raised to the power of n.
SignReturns the sign of number.
SquareComputes the square of the input value.
Square RootComputes the square root of the input value.
SubtractComputes the difference of the inputs.


SubpaletteDescription
Math & Scientific ConstantsUse the Math & Scientific Constants to create LabVIEW applications.