Rabbinatix
Sign inGet started
Store

Percentage change

FreeLogic
@rabbinatix/percentage-change by Rabbinatixupdated Oct 4, 2026

From 80 to 100 is +25 %. Rounded to one decimal.

Sign in to add

Divides by the absolute starting value, so a change between negative numbers keeps the right sign. From 0 there is no percentage: the result is null with valid: false instead of a division-by-zero error.

Shows: Branch to avoid an error, Subtract, Absolute, Divide, Multiply, Round.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Percentage change. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
from: Number
to: Number
Outputs
change: Number (may be empty)
valid: Yes / No
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 10
Percentage change
from
to
Equals, Operators. 2 inputs, 1 output. step 2 of 10
==
A
B
result
Branch, Flow control. 2 inputs, 2 outputs. step 3 of 10
Branch
condition
True
False
Subtract, Operators. 2 inputs, 1 output. step 5 of 10
-
A
B
result
Absolute, Math. 1 input, 1 output. step 6 of 10
Absolute
value
result
Divide, Operators. 2 inputs, 1 output. step 7 of 10
/
A
B
result
Multiply, Operators. 2 inputs, 1 output. step 8 of 10
*
A
B
result
Round, Math. 2 inputs, 1 output. step 9 of 10
Round
value
decimals
result
Return, Input / output. 3 inputs, 0 outputs. step 4 of 10
Return
change
valid
Return, Input / output. 3 inputs, 0 outputs. step 10 of 10
Return
change
valid

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 3/3 pass
PassedExampleInputOutput
Growth{"from":80,"to":100}{"change":25,"valid":true}
Negative numbers{"from":-50,"to":-25}{"change":50,"valid":true}
From zero{"from":0,"to":5}{"change":null,"valid":false}
Try it
Versions
In this package
Percentage change (entry)