mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
Bit of cleanup
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
UTIL = {}
|
||||
|
||||
function UTIL:Round( num, numDecimalPlaces )
|
||||
-- return tonumber( string.format( "%.0f", num ) )
|
||||
return tonumber( string.format( "%." .. ( numDecimalPlaces or 0 ) .. "f", num ) )
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user