Welcome to our Support Center

Quotient & Remainder


Computes the integer quotient and the remainder of the inputs. This function rounds floor(x/y) to the nearest integer towards -inf.

Warning : Two new tensors is created for the outputs.


Input parameters


Β x : class, n-dimensional tensor.
Β y : class, n-dimensional tensor.

Output parameters


x-y*floor(x/y)Β : class, is the remainder. This corresponds to the modulo function of text-based programming languages. When y is 1, the remainder is the fractional part of x.
floor(x/y)Β : class, is the integer quotient. When y is 1, the quotient is the integer part of x.


All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install PERRINE library to run it).

Table of Contents