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

  • params.source — Field whose values this operation reads. Use a single field name, a comma-separated list of plain field paths (cash_flow_type, currency) from the multi-select UI, or a regex via Pattern mode. Omit to apply to all fields on the row.
  • params.target — Optional output field. When omitted, the source field is updated in place. Hidden when more than one named source field is selected.

JSON Configuration

{
"id": "op-modulo",
"kind": "transformation:modulo",
"params": {
"operandMode": "literal",
"operandField": "",
"operand": 10
}
}