Discord
Steam
/
Garry's Mod
/
Developers
/
How to make a ..
Login/Join
Event Log
How to make a var positive?
2 replies, posted
Search
In This Thread
I kinda forgot how to make a number positive in lua. Since i don't know if the var containing an integer will be positive or negative i can't just multiply by -1 and i also can't do if var < 0 then.
[b][url=http://wiki.garrysmod.com/?title=Math.abs]Math.abs [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[QUOTE=PortalGod;24900197][B][URL="http://wiki.garrysmod.com/?title=Math.abs"]Math.abs [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B][/QUOTE]thanks.
Sorry, you need to
Log In
to post a reply to this thread.