Using Math.round() for all damage using VE_DamagePopup?

I am wondering where I can use Math.round() to modify all damage calculation in my game. Currently, if an odd damage amount is halved, it pops up as 95N5 instead of 95.5, and to fix this, I would like to round up all damage. Unfortunately, I don't know how to change this. Any help would be appreciated!

I am also using Yanfly's Damage Core, is it possible these two are conflicting? I've gotten mixed answers in the past.
This might help you:
https://rpgmakermv.co/threads/damage-formulas-101-mv-edition.2172/

I'm trying to modify without using the damage formula box, so I don't have to add it before every skill's damage. But I may have to resort to that if I can't find the way I'm hoping for.
Math.round(number) - rounds a number to nearest integer. is an option within this tutorial.
Math.round(number) - rounds a number to nearest integer. is an option within this tutorial.

I understand that, but I do not want to use the damage formula box to have it round the damage. I'm trying to find an alternative method to round ALL damage dealt in my project, rather than individually adding it for each damaging skill. Are you trying to say there is no better way than to modify the damage formula? If so, that is unfortunate.
I mean, if you are a javascript guru im sure you could edit the internal code of the game,..
As for the legality of that and how hard or easy it would be, i have no idea.
I was just trying to offer an alternative.
Good luck though, id like to see how you end up resolving this.
I mean, if you are a javascript guru im sure you could edit the internal code of the game,..
As for the legality of that and how hard or easy it would be, i have no idea.
I was just trying to offer an alternative.
Good luck though, id like to see how you end up resolving this.
I appreciate the suggestion. I'm just hoping there is a shortcut. 😛
You might consider asking one of the mods to move this to JS/Plugin requests.
@Andar
You might consider asking one of the mods to move this to JS/Plugin requests.
@Andar

I don't think that's necessary. See, for what I'm trying to do, I just want whole numbers to display normally. In my current project, the popup displays decimal damages strangely:
bd6e677039690f3d47bf59ab230eea31.png

So, I thought that rounding up all damage to the nearest integer would solve this. Turns out, that even if Math.round() is used in the damage formula, the damage is not rounded, because the damage is being halved by a passive state. I would be okay with decimal damage IF it didn't display so improperly here. It seems to be a problem with VE_DamagePopups, but even when disabled, Yanfly's Damage Engine displays it incorrectly as well, showing a space where the "N" is in the picture, instead of a decimal. Both are problematic. Does anyone know of a way to change the display to an actual decimal point? I don't even know how to approach this.

Edit: For more information of what exactly is going on, here is the notetag for the passive state I am using:

<Custom React Effect>
if (a.isStateAffected(200)) {
value *= 0.5;
}
</Custom React Effect>

My character takes half damage from female enemies (State "200" is "female"). The value halving seems to occur after the damage formula, so even Math.round() has no effect.
Actually, both the default engine and Yanfly's Damage Core already use Math.round() before returning the damage value (with the elemental rates etc. added), so there should be no way to get a decimal value in the first place.

EDIT: Use Math.round() in your passive state by adding a line value = Math.round(value);
That seems to be the cause.
Actually, both the default engine and Yanfly's Damage Core already use Math.round() before returning the damage value (with the elemental rates etc. added), so there should be no way to get a decimal value in the first place.

EDIT: Use Math.round() in your passive state by adding a line value = Math.round(value);
That seems to be the cause.

Wow, it worked! I tried that once already, but I guess I did it incorrectly because I didn't think to put value twice. A much simpler solution than I was expecting. Thanks a lot!

Also, is there a reason I cannot get a passive state to detect if an enemy in a troop has the "Female" state? I use a custom passive condition to detect if there is an enemy with the state, but either the state remains on regardless if there is an enemy with state 200, or the state never activates at all. I'm not sure what is causing the differentiation, but any help would be appreciated.

<Custom Passive Condition>
if (target.isStateAffected(200)) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

Original thread: https://forums.rpgmakerweb.com/threads/using-math-round-for-all-damage-using-ve_damagepopup.81886/