Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

abs

abs

type: function (subr) 
location: built-in
source file: xlmath.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(abs <expr> )
        <expr>          -       integer or floating point number/expression

DESCRIPTION

The ABS function finds the absolute value of a number and returns the result.

EXAMPLES

(abs 1)                                 ; returns 1
(abs -99)                               ; returns 99
(abs -99.9)                             ; returns 99.9
(abs -32768)                            ; returns 32768

COMMON LISP COMPATIBILITY: Common LISP supports a complex number data type which is not supported in XLISP.


Go to the first, previous, next, last section, table of contents.