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 » Scripters
Home Search
 

Re: IntValue vs. NumberValue

Previous Thread :: Next Thread 
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:09 PM
What's the difference?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
08 Aug 2017 05:10 PM
IntValues can only store integers


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
08 Aug 2017 05:10 PM
intvalue stores and int
numbervalue stores a double
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
08 Aug 2017 05:10 PM
IntValues store integers;
NumberValues store numbers
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:11 PM
I understand integers are negative and positive but what is a double?
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
08 Aug 2017 05:12 PM
7.1
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
08 Aug 2017 05:12 PM
wikipedia dot org/wiki/Double-precision_floating-point_format

you can store decimal numbers
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
08 Aug 2017 05:13 PM
LOOK IT UP. THE ANSWER TO YOUR QUESTION WAS ALREADY ON THE INTERNET ANYWAY.


Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:19 PM
I have another question. Can both intvalues and numbervalues become negative numbers? And guy above me you need to learn how to chill especially on a kids site
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
08 Aug 2017 05:20 PM
yes they're both signed
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
08 Aug 2017 05:20 PM
do you know what an integer is? do you know what a number is? are they only positive, or do negative integers and negative numbers exist?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
08 Aug 2017 05:20 PM
"Can both intvalues and numbervalues become negative numbers?"

Test it, moron. Look up what integers and doubles are.

"And guy above me you need to learn how to chill especially on a kids site"

This isn't a kids' site.


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
08 Aug 2017 05:21 PM
well there are unsigned integer values, just not as roblox instances.

either way, the dude who said you should just look it up is right, this post is useless go do some research when you have a question before coming here.
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:31 PM
And last question in what instances would I want to use intvalues, and not numbervalues, and vise versa?
Report Abuse
SimplifiedCode is online. SimplifiedCode
Joined: 26 Jul 2012
Total Posts: 1366
08 Aug 2017 05:33 PM
^

Int: To store ints

Number: To store doubles




https://www.youtube.com/watch?v=EcLPNGLRHU8 | https://www.youtube.com/watch?v=2y6MfP36HWE
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
08 Aug 2017 05:34 PM
are u serious?

let me break it down again:

int values store INTEGERS, which are POSITIVE and NEGATIVE WHOLE NUMBERS
THEREFORE, NO DECIMAL VALUES

number values store REAL NUMBERS (which are subject to rounding and floating point errors)
THEREFORE, YES DECIMAL VALUES

you would use an INT VALUE when you only want to store INTEGERS
you would use a NUMBER VALUE when you want to store more than just INTEGERS

if you don't know which to use, just use NUMBER VALUES, because they can hold any values that an INT VALUE can hold
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
08 Aug 2017 05:35 PM
or u can just use a string and shut up
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
08 Aug 2017 05:35 PM
@AggressiveCatch

I don't think that was clear enough for him.


Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
08 Aug 2017 05:40 PM
local data = '' local ds = game:GetService'DataStoreService':GetDataStore('blah') game.Players.PlayerAdded:Connect(function(player) local coins = ds:GetAsync(tostring(player.UserId)).Coins or 0 data = data..'['..player.UserId..';'..(coins or 0)..']' end) game.Players.PlayerRemoving:Connect(function(player) ############################################################# end)
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:40 PM
Thanks @aggressive, btw if any of you people want to help anybody with a neutral question you don't have to become aggressive. Just keep that in mind if you want to go into customer service.

And I admit I could have stayed my question clearer, just at least give me the same answer and no banter
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
08 Aug 2017 05:42 PM
IntValues for things that don't need to have decimals

NumberValues for things that do

Simple enough
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:45 PM
@system good answer I like this answer a lot, thanks for being respectful
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
08 Aug 2017 05:45 PM
i still feel like storing stuff in a string using %bxy and separators is probabably better than using arrays or values
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
08 Aug 2017 05:46 PM
"you don't have to become aggressive. Just keep that in mind if you want to go into customer service."

sorry, but this isn't customer service. we aren't paid employees. we do this for free and it's an annoyance when people waste our time asking questions that you can easily find the answers to by googling
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
08 Aug 2017 05:53 PM
@aggressive this is the last time I'm gonna reply to you then I'm gonna block, but first off I never said this was customer service and second if I'm wasting your time don't answer, you probably are on the forums all day anyway

P.s. even if this is not customer service it's nice to be respectful in the first place, you and others are lucky you can trash talk with the protection of a screen
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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