Operation between global variables

How could be possible do with scripts something like

GN:1 * GN:2 / GN:3? I haven't seen something to do that around...
You can use Number Variable command to do that. If you want to do that with script, it looks like this:

Code:
var numbers = GameManager.variableStore.numbers;
numbers[0] = numbers[0] * numbers[1] / numbers[2];

The variable index starts at 0 in scripts so for variable 0001 you have to use 0, for 0002 you have to use 1 and so on. Let me know if that helps you out.

Original thread: https://forums.rpgmakerweb.com/threads/operation-between-global-variables.102388/