REBOL Document

Abs - Function Summary


Summary:

Returns the absolute value.

Usage:

abs value

Arguments:

value - The value argument. (must be: number pair money time)

Description:

Returns a positive value equal in magnitude.


    print absolute -123
    123


    print absolute -1:23
    1:23

Related:

- - Returns the second value subtracted from the first.
absolute - Returns the absolute value.
negate - Changes the sign of a number.


<Back | Index | Next>

Copyright 2004 REBOL Technologies