Positive modulo

Supported in: Batch

Returns positive modulus of an expression.

Expression categories: Numeric

Declared arguments

  • Denominator - no description
    Expression<T2>
  • Numerator - no description
    Expression<T1>

Type variable bounds: T1 accepts Byte | Integer | Long | Short**T2 accepts Byte | Integer | Long | Short

Output type: T1

Examples

Example 1: Base case

Argument values:

  • Denominator: 3
  • Numerator: 10

Output: 1


Example 2: Null case

Argument values:

  • Denominator: null
  • Numerator: 10

Output: null


Example 3: Null case

Argument values:

  • Denominator: 3
  • Numerator: null

Output: null