Skip to content

Modulo

Input
value
Value mod 10
transformation:
modulo

Compute remainder of source field divided by operand (sign follows dividend)

source:value
parameters
operandMode

Use another row field or a numeric constant

operandField

Row field to combine with the source field

operand

Numeric constant to combine with the source field

Output
value
2
-7
0
0
3.5
-0.5

Sample inputs run locally in your browser using the same operation logic as Fontana Flow.
Results are illustrative, not connected to a workflow.

Compute remainder of source field divided by operand (sign follows dividend).

Parameters

  • operandMode (Operand type, string, optional) — Use another row field or a numeric constant. Allowed values: field, literal.
  • operandField (Operand field, string, optional) — Row field to combine with the source field. Default: "".
  • operand (Literal operand, number, optional) — Numeric constant to combine with the source field. Examples: 0, 1, 2, 10.

Field selection

  • source — Field whose values this operation reads. Omit to apply to all fields on the row.
  • target — Optional output field. When omitted, the source field is updated in place.

JSON Configuration

{
"id": "op-modulo",
"type": "transformation",
"action": "modulo",
"params": {
"operandMode": "literal",
"operandField": "",
"operand": 10
},
"testInputs": [
"12",
"-7",
"100",
"0",
"3.5",
"-0.5"
]
}