CoCoA:Abs

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>