Difference between revisions of "CoCoA:Abs"

From ApCoCoAWiki
(pushing XML rev. 1.46, again)
 
(No difference)

Latest revision as of 10:02, 24 October 2007

Abs

absolute value of a number

Description

This function returns the absolute value of N.

Example

  Abs(-3);
3
-------------------------------
  Abs(-2/3);
2/3
-------------------------------

Syntax

Abs(N:INT):INT
Abs(N:RAT):RAT
   <type>integer</type>
   <type>rat</type>