Divides 1 by the input value.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cdbl.png x

    x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • idbl.png 1/x

    1/x is infinity if x is 0. If x is an integer, 1/x is a double-precision, floating-point number.

  • Fixed-Point Details

    If you wire a fixed-point value to this function, by default LabVIEW configures the integer word length of the reciprocal to avoid overflow. However, because the precision of the reciprocal 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.

    FPGA Module Details

    The following details apply when you use this object in an FPGA VI.

    Note The following details are subject to change with each version of the LabVIEW FPGA Module.
    Single-Cycle Timed Loop Not supported.
    Usage If you use this function with the single-precision floating-point data type, refer to the Using the Single-Precision Floating-Point Data Type and Deciding Which Data Type to Use in FPGA Designs topics for resource use, latency, and single-cycle Timed Loop support implications.
    Timing This function normally requires clock cycles in proportion to the number of bits in 1/x. If you use this function with the fixed-point data type and select the Round-Half-Up rounding mode, the function requires one more clock cycle than the other two rounding modes.
    Resources Division is an expensive operation on the FPGA. In general, the function requires FPGA resources proportional to the number of bits in x and 1/x. If you use this function with the fixed-point data type, the rounding mode might impact resources.
    Notes You also can use the High Throughput Reciprocal function to perform fixed-point math and analysis on an FPGA target.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Numerics\Numeric Functions.vi