In the example given below,
the variable positiveNumber
stores the number 1234
.
Numbers can also be negative.
In the example given below,
the variable negativeNumber
stores the number -1234
which is a negative value.
We can also store
fractional numbers
in a variable.
In the example given below,
the variable fractionalNumber
stores the number 12.34
.