Divide Function

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Owning Palette: Numeric Functions

Requires: Base Development System

Computes the quotient of the inputs.

If you wire two waveform values or two dynamic data type values to this function, error in and error out terminals appear on the function. The connector pane displays the default data types for this polymorphic function.

Details  Example

x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x/y is a double-precision, floating-point number if both x and y are integers. In general, the output type is the widest representation of the inputs if the inputs are not integers or if their representations differ.

Note  You can manually configure this function to output data of a type you want. To specify the output data type, right-click the function and select Properties to display the Object Properties dialog box. On the Output Configuration page, click the Representation icon and select the data type you want. A blue coercion dot appears on the output terminal of the function to indicate that you have configured the output data type.

Divide Details

Fixed-Point Details

If you wire fixed-point values to this function, by default LabVIEW configures the integer word length of the quotient to avoid overflow for nonzero values of y. However, because the precision of the quotient can be infinite, rounding conditions always occur. Use the Numeric Node Properties dialog box to configure how LabVIEW handles rounding of fixed-point data. This function always uses the Saturate overflow mode to handle overflow.


Refer to the Numeric Functions VI in the labview\examples\Numerics directory for an example of using the Divide function.


Not Helpful