|
| 05 Jun 2015 08:34 PM |
| Whats the difference between a number value and an int value?? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Jun 2015 08:35 PM |
| int value can only hold integers, numbervalue can hold any number even with fractal part |
|
|
| Report Abuse |
|
|
v3c3
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 674 |
|
|
| 05 Jun 2015 08:35 PM |
integers are whole numbers
number values can be decimals I assume |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 05 Jun 2015 08:35 PM |
| A number value contains a float value, which'll allow a far greater range of numbers and decimals. An intvalue has a smaller range and no decimals |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 08:37 PM |
Lol this always happens on these questions.
First person: Simple response Second person: Simple Response + Extra Third person: Explains in detail.
:p |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Jun 2015 08:42 PM |
| None of them (or should I say, us) explained it in any detail. |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 05 Jun 2015 08:45 PM |
What is a rational number? What is an integer? What is a rainbow?
Most people think these are all the same thing, however they are not. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Jun 2015 08:51 PM |
| amanda i sent you a message, thanks |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 09:07 PM |
An IntValue can only hold integers, in other words whole numbers. These are the numbers that you count with, you probably learned them around grade 1/grade 2, examples:
1, 2, 3, 4, 5, 6, 7, 99, 1919438, 1938485759303
IntValues can also extend into negatives, as long as there are no fractional or decimal parts:
-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
You can think of them as this huge number line.
NumberValues are very similar, they include the integers, but the also include decimals. If you have done any work with math above primary, you should understand that these are integers and parts of integers. For example, 5 and a half is
5.5
If there is a . (decimal point) in your number, then it cannot be used in an IntValue and must be a NumberValue.
You can also think of fractions, for example
3/5 is a decimal. Writing it as a fraction causes division to occur, which will then return 0.6 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Jun 2015 09:10 PM |
warspy, I don't think you know what whole numbers are. An intvalue holds integers, not whole numbers, integers. |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 09:20 PM |
Whole numbers are positive integers, but I also included afterwards, if you didn't notice, integers also include negatives.
What did I do wrong..? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Jun 2015 09:25 PM |
| blah I didn't read the whole thing |
|
|
| Report Abuse |
|
|
| |
|