generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Absolute value

Previous Thread :: Next Thread 
32ndSon is not online. 32ndSon
Joined: 15 Mar 2012
Total Posts: 38
30 Jun 2012 10:16 PM
Is it possible to obtain the absolute value in Lua?
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
30 Jun 2012 10:17 PM
math.abs(Number)
Report Abuse
32ndSon is not online. 32ndSon
Joined: 15 Mar 2012
Total Posts: 38
30 Jun 2012 10:18 PM
Thank you. I've been squaring the number and dividing it by it's maximum value squared.
Report Abuse
Neflicx is not online. Neflicx
Joined: 24 Jun 2012
Total Posts: 42
30 Jun 2012 10:56 PM
I would have just checked to see if below zero and if it was, multiply by -1. But I know about math.abs.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image