remainderValue method

DiscreteFieldFunction remainderValue(
  1. int divisor
)

Composes a function that applies a remainder operation, point-wise, to this function's field result.

The function result has no data where this function's field result has no data.

The function result has no data when the divisor is zero.

The sign of this function's field result is preserved. For example, 7 remainder 3 (or -3) will result in 1 and -7 remainder 3 (or -3) will result in -1.

The function result extent equals that of this function's field result.

Parameters:

  • divisor — The divisor.

Return Value: A function that applies a remainder operation to this function's field result.