Skip to main content

Math Multiply with Value

Multiply a key value with a new value and store the result in a new key.

Example

This example shows how to use the MathMultiplyWithValue transformation to multiply the value of an existing key with a specified value and store the result in a new key.

{
"operation": "math_multiply_with_value",
"arguments": {
"key": "original_value",
"value": 2.5,
"new_key": "multiplied_value"
}
}

Given the input record:

{
"original_value": 10,
"other_field": "some_value"
}

The output record will be:

{
"original_value": 10,
"other_field": "some_value",
"multiplied_value": 25
}