Decimals and fractions
10 + 3.14159;
/. Note that the resulting number is always converted to decimals — just like with a calculator.
1 / 3;
Improper fractions use the division operator in the same way.
11 / 10;
To use mixed numbers, you need to add the whole number and fraction.
1 + (4 / 3);
You can make a number negative by placing the
- operator in front.
You can also get a negative number by subtracting a number from a smaller number.
5 - 7;