IMind soft

Author's software

Development

Design

Designing

Being tested

The absolute value of a number

Writing functions:

abs(x)

Returns the absolute value of x. If the fractional number of x, the return value will also be a fractional number, or - integral.

For example:

abs(2)=2;

abs(-4)=4;

abs(-4.2)=4.2;

abs(5.8)=5.8;

 

Top.Mail.Ru