For the attack skill i want it to be a.atk/b.def * 40 and it only works when a.atk/b.def is 1 or greater. Is there a way to just keep the number at whatever it is instead of rounding it to 0?
Prevent numbers below 1 rounding down to 0.
RPG Maker VXAce Supportsimply write it as 40*a.atk/b.def
Same result mathematically, but since the division comes last the change to integer will only effect the minimal rest (as it should, because turning the entire result into float will also turn your HP into float values)
Same result mathematically, but since the division comes last the change to integer will only effect the minimal rest (as it should, because turning the entire result into float will also turn your HP into float values)
Original thread: https://forums.rpgmakerweb.com/threads/prevent-numbers-below-1-rounding-down-to-0.64877/