Skip to content
abinition edited this page Oct 22, 2014 · 4 revisions

#abs

###Get the absolute value of a number

Syntax

status = abs arg1 ;

Arguments

  1. list arg1

A value of any type.

Return Value

list result
  • 1 :

The absolute value. The

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: status = abs ( arg1 ) ;

Description

  • None

Examples

int x = -999 ;
puts abs x ;

Related Links

None

Clone this wiki locally