Welcome to our Support Center

Quotient & Remainder

Description

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.

Example

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
Index