MZ Calculation not working in battler for some reason

Screenshot 2026-05-10 004344.png

This is the first of a common event that I run on 'turn end' with span set to 'turn' in battle.

I'm trying to get the percent of mp that the party leader has. Initially the third variable had just code: 'v[1]/v[2]*100'
but at some point I swapped it out just in case i got it wrong or something.
The text is there to test if everything is working correctly.

When the common event is triggered on turn end of the first turn, this pops up:

Screenshot 2026-05-10 004404.png


why is it returning 0? I don't understand.
Could be rounding issues. Try swapping the order of multiplying and dividing.
Could be rounding issues. Try swapping the order of multiplying and dividing.
That worked! It's working fine now.

Original thread: https://forums.rpgmakerweb.com/threads/calculation-not-working-in-battler-for-some-reason.183549/