hey guys,
working on some infopanels for my ui. so what i have is this
my avoidance is shown correct but like 25.175693545672348%.Code:local MyAvoid = 5+GetParryChance("Player")+GetDodgeChance("Player") local MyAvoidance = CreateFrame("FRAME", nil, UIParent) MyAvoidance:SetPoint("CENTER", UIParent, 0, 0) MyAvoidance:SetWidth(200) MyAvoidance:SetHeight(20) local MyAvoidanceText = MyAvoidance:CreateFontString() MyAvoidanceText:SetPoint("CENTER") MyAvoidanceText:SetSize(200, 20) MyAvoidanceText:SetFont(cfg.font, 12, "OUTLINE") MyAvoidanceText:SetText("Avoidance: "..MyAvoid.."%")
how can i abbreviate the fontstring that it is shown as 25.1% or 25.17%
thank you for helping me

MMO-Champion


Reply With Quote