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.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). x : class, n-dimensional tensor.
Documentation illustration (illustration unavailable in the archive). y : class, n-dimensional tensor.
Output parameters
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive). floor(x/y) : class, is the integer quotient. When y is 1, the quotient is the integer part of x.
Examples
All these examples 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 Accelerator library to run it).
Documentation illustration (illustration unavailable in the archive).
