So what I'm trying to do with my very limited lua knowledge is a simple % mana text aura such as this:Which is all dandy and working, however I can't seem to stop it from returning decimals. Had it been one or two I'd be fine, but having 91.666666666666667% mana shown across your screen gets hard to read!Code:function() local p = math.max(1, UnitPower("Player")) / math.max(1, UnitPowerMax("Player")) * 100; return p end
Any suggestions?