Custom code from my weakaura:
local totalXP = UnitXPMax("player")
local restedXP = GetXPExhaustion()
local percentrested = ((restedXP / totalXP) * 100)
local rested = percentrested - floor(percentrested)
local twodec = (floor(rested * 100)/100) + floor(percentrested)
I would like it to return "0" instead of just a blank "" when my characters rested experience is zero. Suggestions?