I changed "math.floor()" into "math.round()" in "rpg_objects" does it have any side effects?

Hello there are some .js files that decide how the RPG-Maker will behave, one thing that always bothered me is that the Maker always rounded down variables, this was pretty problematic to me. Now I changed it in the files, the exact location is at line 566

Game_Variables.prototype.setValue = function(variableId, value) {
if (variableId > 0 && variableId < $dataSystem.variables.length) {
if (typeof value === 'number') {
value = Math.round(value); <--- I changed that one
}
this._data[variableId] = value;
this.onChange();
}
};

Am I coming into trouble because of that? Is there anything in the maker to keep that it's important to crunch the floating point numbers? I mean I tested it for a while and I never realized something odd. But I am not sure.
floor function rounds down to the integer, round rounds like you would normally, toward the closest integer.

so, if you set a decimal in the variable, it will round it to the nearest integer, such as 1.14 will just be 1, 1.62 will be 2. floor will just make both of those numbers 1.
Am I coming into trouble because of that? Is there anything in the maker to keep that it's important to crunch the floating point numbers? I mean I tested it for a while and I never realized something odd. But I am not sure.

If you're trying to implement certain algorithms within an event command, this could break them.

Since JavaScript doesn't operate on integers (non-fractional numbers, e.g. 1 and 2 are integers, but anything in between, like 1.5 is not), Math.floor() is widely used to implement integer division, which is important in quite a number of algorithms. By replacing Math.floor() with Math.round() you have essentially disabled integer division in RPG Maker.

As long as you're aware of that, there should be no problems with it. However, if you're following some tutorial, the tutorial implements some kind of algorithm using event commands (instead of script commands) and for some reason you get a different result from the tutorial despite following it to the letter, this may be the reason why.

Original thread: https://forums.rpgmakerweb.com/threads/i-changed-math-floor-into-math-round-in-rpg_objects-does-it-have-any-side-effects.149388/