Basically, how do I convert "floating" numbers like 6.25, etc into "integer" numbers - (1,2,3...)?
I know there's a Math.round script call, but I'm not sure how it works. The variable has nothing to do with battles.
I think you should give an example of where you need that, because by default the variables are integers and cut off any decimal valus - in fact you need to trick the engine into converting them into float before they can store a float number.
so the solution might be much simpler...
I think that variables (in the sense of "Variable #1", "Variable #2, etc., not in the sense of variables within your plugin code) are automatically either rounded or floored (rounded down) automatically after any calculation; for example, if you store the result of 12 / 5 in Variable #2, and then you look at the value of Variable #2 using the testplay debug or a Show Message command, it will show 2, not 2.4. I think it's different between each versions but I believe that's how it works in MV.
If you still specifically need to round the variable, you can do it in the event editor by using Control Variables and setting the value to the script line:
Math.round($gameVariables.value(X))
or you can do it with code alone by using the script call:
$gameVariables.setValue(X, Math.round($gameVariables.value(X)))
Replace X with the Variable # that you want to round.