# Get the absolute value of a real or complex number - online calculator

You can get the absolute vale of a real or complex number by the abs command. Input the abs command and a real or complex value like abs -0.24 in the header form and press the enter key, and you get the absolute value. For example, if you input

abs -3


in the search form above, the result (3) appears in the screen. The next example is to calculate the absolute value of a negative floating point number.

abs -0.24


The result is 0.24.

Like Unix/Linux commands, you should separate a command and arguments.

## The absolute value of a fraction

The abs command enables you to get the absolute value of a negative fraction like -5/3.

abs -5/3


The result is below.

$\frac{5}{3}$

## The absolute value of a complex number

This website supports the arithmetic operations of complex numbers and the abs can take a complex number as argument.

abs 3+4*I


The result is 5. Note that 3+4*I means

$3 + 4 i$

and an imaginary number i must be written I (capital case). The absolute value of this complex number is the distance of (0, 0) and (3, 4) in the complex plane.