mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
Simplify modf function
Delegate to ClassicAPI
This commit is contained in:
+1
-5
@@ -266,11 +266,7 @@ end
|
||||
-- 'f' [float] the number to breakdown.
|
||||
-- returns: [int],[float] whole and fractional part.
|
||||
function pfUI.api.modf(f)
|
||||
if modf then return modf(f) end
|
||||
if f > 0 then
|
||||
return math.floor(f), mod(f,1)
|
||||
end
|
||||
return math.ceil(f), mod(f,1)
|
||||
return math.modf(f)
|
||||
end
|
||||
|
||||
-- [ GetServerEpoch ]
|
||||
|
||||
Reference in New Issue
Block a user