# Arithmetic

You can do arithmetic with the Wolfram Language just as you would on an electronic calculator.

This is the sum of two numbers:
 In:= Out= Here the / stands for division, and the ^ stands for power:
 In:= Out= Spaces denote multiplication in the Wolfram Language. The front end automatically replaces spaces between numbers with light gray multiplication signs:
 In:= Out= You can use a * for multiplication if you want to:
 In:= Out= You can type arithmetic expressions with parentheses:
 In:= Out= x^y power -x minus x/y divide x y z or x*y*z multiply x+y+z add

Arithmetic operations in the Wolfram Language.

Arithmetic operations in the Wolfram Language are grouped according to the standard mathematical conventions. As usual, 2^3+4, for example, means (2^3)+4, and not 2^(3+4). You can always control grouping by explicitly using parentheses.

This result is given in scientific notation:
 In:= Out= You can enter numbers in scientific notation like this:
 In:= Out= Or like this:
 In:= Out= With the Wolfram Language, you can perform calculations with a particular precision, usually higher than an ordinary calculator. When given precise numbers, the Wolfram Language does not convert them to an approximate representation, but gives a precise result.

This gives the result in terms of rational numbers:
 In:= Out= This gives the approximate numerical result:
 In:= Out= This gives the approximate numerical result with 40 significant digits:
 In:= Out= 