Simplify modf function

Delegate to ClassicAPI
This commit is contained in:
Brues
2026-07-20 15:10:31 -05:00
parent 756e8840af
commit 8cdced5ec0
+1 -5
View File
@@ -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 ]