Home > lang > abs 
 en fr de es it nl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Warning! This page is not up to date.  See english version 
Abs
Value = Abs ( Number AS Float ) AS Float

Oblicza wartość bezwzględną liczby.

Wartość bezwzględna liczby jest wartością dodatnią, np. wartość bezwzględna z -7 to 7 i tak samo z +7 to 7.

Example

PRINT Abs(-2.5)

2.5
PRINT Abs(0)

0
Abs() lets you easily find the difference between two values:

value1 = 100
value2 = 200
PRINT "The difference is "; Abs(value1 - value2)
The difference is 100

See also

Arithmetical Functions