How to fix .5 numbers?

Math.ceil($gameParty.members()[0]._brPotency /= 2);
I used this for disallowing .5 numbers before realizing it doesn't do anything. Any ideas how to solve it?
I think your problem is the /= symbol, it should be just
Code:
Math.ceil(... / 2)
Aerosys is correct. /= is an assignment operator and only works between the left and right sides of an assignment statement. The thing is, the argument you're providing to Math.ceil *is* an assignment statement because of that operator, so it's working but a bit too well, because it will return the value divided by 2 but will also divide the actual value of the property, so it becomes half of what it was before every time that's evaluated.
I tried it without =, and in this case it just doesn't work.
I tried it without =, and in this case it just doesn't work.
Where are you actually using it? Can I see the script line?
//Halves Emo's Burn
Math.round($gameParty.members()[1]._brPotency / 2);
Math.round($gameParty.members()[1]._brStack / 2);
$gameParty.members()[1].setStateDisplay(55, $gameParty.members()[1]._brPotency);
//Adds it to Swesha's Burn
Math.round($gameTroop.members()[0]._brPotency += $gameParty.members()[1]._brPotency);
Math.round($gameTroop.members()[0]._brStack += $gameParty.members()[1]._brStack);
$gameTroop.members()[0].setStateDisplay(55, $gameTroop.members()[0]._brPotency);
//Halves Emo's Burn
Math.round($gameParty.members()[1]._brPotency / 2);
Math.round($gameParty.members()[1]._brStack / 2);
$gameParty.members()[1].setStateDisplay(55, $gameParty.members()[1]._brPotency);
//Adds it to Swesha's Burn
Math.round($gameTroop.members()[0]._brPotency += $gameParty.members()[1]._brPotency);
Math.round($gameTroop.members()[0]._brStack += $gameParty.members()[1]._brStack);
$gameTroop.members()[0].setStateDisplay(55, $gameTroop.members()[0]._brPotency);
Just calling Math.round by itself doesn't actually do anything (and I figured you'd done this, which was why I asked you to paste the script); the return value gets lost to the ether. You need to do something like

$gameParty.members()[1]._brPotency = Math.round($gameParty.members()[1]._brPotency / 2);
//Halves Goth's Burn
$gameParty.members()[1]._brPotency = Math.round($gameParty.members()[1]._brPotency /= 2);
$gameParty.members()[1]._brStack = Math.round($gameParty.members()[1]._brStack /= 2);
var potency = Math.round($gameParty.members()[1]._brPotency);
var stack = Math.round($gameParty.members()[1]._brStack);
$gameParty.members()[1].setStateDisplay(55, potency);
//Adds it to Swesha's Burn
$gameTroop.members()[0]._brPotency += $gameParty.members()[1]._brPotency;
$gameTroop.members()[0]._brStack += $gameParty.members()[1]._brStack;
$gameTroop.members()[0].setStateDisplay(55, $gameTroop.members()[0]._brPotency);

This seems to work, thanks

Original thread: https://forums.rpgmakerweb.com/threads/how-to-fix-5-numbers.166209/