What would i have to change in either of these functions to account for decimals in the UnitPower?

Code:

function ()
local curRage = UnitPower("player", "rage")
if curRage >= 20 then
local _, STR, _, _ = UnitStat("player", 1)
local _, STA, _, _ = UnitStat("player", 3)
local APbase, APposBuff, APnegBuff = UnitAttackPower("player")
local APfinal = APbase + APposBuff + APnegBuff
local sbMaxRage = 60
return floor(1.05*(max((2*(APfinal - STR * 2)), ((2.5 * STA)*(min(curRage,60)/sbMaxRage)))))
else
return 0
end
end

Code:

function()
local base, posBuff, negBuff = UnitAttackPower("player");
local effective = base + posBuff + negBuff;
local baseSTR, statSTR, posBuffSTR, negBuffSTR = UnitStat("player",1);
local baseSTAM, statSTAM, posBuffSTAM, negBuffSTAM = UnitStat("player",3);
local power = UnitPower("player");
if (power >= 60) then
return floor((max(2*(effective-(statSTR*2)), statSTAM*2.5))*1.05);
else
return floor((max(2*(effective-(statSTR*2)), statSTAM*2.5)*(power/60))*1.05);
end
end