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: Difference between numbervalue and integervalue?

Previous Thread :: Next Thread 
sckum555 is not online. sckum555
Joined: 20 Aug 2008
Total Posts: 6576
05 Aug 2011 03:17 PM
They look the same to me.
Report Abuse
Boomarang is not online. Boomarang
Joined: 15 Jul 2008
Total Posts: 919
05 Aug 2011 03:19 PM
NumberValue holds any real number and IntegerValue holds any number that is whole. Not a whole number, but a number without a decimal.
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
05 Aug 2011 03:20 PM
NumberValue can be either Float (Decimal) or Integer (Whole numbers) while Integer is just Integer.
Report Abuse
sckum555 is not online. sckum555
Joined: 20 Aug 2008
Total Posts: 6576
05 Aug 2011 03:20 PM
Oh I see. Thanks.
Report Abuse
sckum555 is not online. sckum555
Joined: 20 Aug 2008
Total Posts: 6576
05 Aug 2011 03:21 PM
So wait if I said

a = 3/2
intvalue.Value = a



would the valu turn to 1?
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
05 Aug 2011 03:24 PM
3/2=1.5, it would become 2, since it rounds above 0.4.
Report Abuse
sckum555 is not online. sckum555
Joined: 20 Aug 2008
Total Posts: 6576
05 Aug 2011 03:24 PM
Oh ok.
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
05 Aug 2011 03:26 PM
If you want it to erease the decimal, use math.floor(3/2).
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