Skip to content

Negate

Input
value
Negate value
transformation:
negate

Negate (flip the sign of) a number

source:value
Output
value
5
-5
0
100
-42
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.

Negate (flip the sign of) a number.

Parameters

This operation has no configurable parameters.

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-negate",
"type": "transformation",
"action": "negate",
"params": {},
"testInputs": [
"-5",
"5",
"0",
"-100",
"42",
"-0.5"
]
}