REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: abs

abs  value

Returns the absolute value.

Arguments:

value [number! pair! money! time!]

See also:

absolute   sign?   negate   -  

Description

Note: A short form for absolute.

Returns a positive value equal in magnitude.

print abs -123
123
print abs -1:23
1:23
print abs -1x4
1x4


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin