- billion damage format.

- some debug added to find a nil sourcename from the CLEU.
- some table recycle suggested by @Farmbuyer on curseforge.
- framework update to version 50.
This commit is contained in:
Tercio
2017-05-24 11:58:47 -03:00
parent f88c0f7acc
commit 447eb08401
5 changed files with 39 additions and 19 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
local dversion = 49
local dversion = 50
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -244,7 +244,9 @@ if (symbol_1K) then
end
else
function DF.FormatNumber (numero)
if (numero > 999999) then
if (numero > 999999999) then
return format ("%.2f", numero/1000000000) .. "B"
elseif (numero > 999999) then
return format ("%.2f", numero/1000000) .. "M"
elseif (numero > 99999) then
return floor (numero/1000) .. "K"