Do all MV variables initialise as "zero"?

When a user starts a game for the first time, reinitialising all variables, and no script/event etc. has edited a variable, is it "zero"?

Not "null", or "void", but actually the numeric quantity of "zero", which isn't necessarily the same thing?
Yes. All start with the numerical value of '0' - and all switches start as 'false'.
Traditionally in Javascript, its similar to other languages in that it depends on what type the variables is initialized with. "Numbers" initialize with 0 and 'Strings' initialize with null unless they're assigned with a default value at creation time.
Traditionally in Javascript, its similar to other languages in that it depends on what type the variables is initialized with. "Numbers" initialize with 0 and 'Strings' initialize with null unless they're assigned with a default value at creation time.
Thanks, I'm not so accustomed to JS.
$gameVariables._data initialises as an empty array. When you access the value with $gameVariables.value(x), it will either return the value at the given index, or 0 if it doesn't exist.

Note that this does not mean the variable itself defaulted to 0; technically the index you tried to access had a value of "undefined".
$gameVariables._data initialises as an empty array. When you access the value with $gameVariables.value(x), it will either return the value at the given index, or 0 if it doesn't exist.

Note that this does not mean the variable itself defaulted to 0; technically the index you tried to access had a value of "undefined".
I believe it also rounds numbers to integers.
I believe it also rounds numbers to integers.
It does not. It DOES round them if you assign a numerical value using $gameVariables.setValue, but you can set data directly and put a float in there.

Original thread: https://forums.rpgmakerweb.com/threads/do-all-mv-variables-initialise-as-zero.137107/