User:ENET/StepByStep/IntegersNumbers: Difference between revisions
From Legacy Roblox Wiki
< User:ENET | StepByStep
m Text replacement - "</code>" to "</SyntaxHighlight>" |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" |
||
Line 15: | Line 15: | ||
hi=3.33; | hi=3.33; | ||
bob=4; | bob=4; | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
In that example, x equals 25, hi equals 3.33, and bob equals 4. | In that example, x equals 25, hi equals 3.33, and bob equals 4. |
Latest revision as of 06:18, 27 April 2023
Integers/Numbers
Summary: An integer/number is a value consisting of numbers. IE 1.3, 500, 88, 0.33
Integer
An integer is a number without a decimal. This includes: 3, 4, 5, 0, -55, -199, 88
Number
A number is any number. Decimal or Integer. IE 0, 1, 1.3, 1.5; you can easily say a number is an integer, but a integer is not a number.
Declaration
Declaring a number is as simple as writing the x value of an equation(in algebra).
x=25;
hi=3.33;
bob=4;
</syntaxhighlight>
In that example, x equals 25, hi equals 3.33, and bob equals 4.