IndexPythonJapaneseChainmailleLeather

Abs Function

abs() - Converts the number in the parenthesis to it's absolute value.
  The absolute value of a number is it's distance from 0.
  Absolue value is represented by ||.
   |2| = 2
   |-2| = 2

  Examples:

   abs(2)
    2

   abs(-2)
    2

   abs(3.14)
    3.14

   abs(-3.14)
    3.14

*Note = Unlike negating a variable (-x), abs() ALWAYS returns a positive value.
HomeData TypesVariablesFunctionsEscape SequencesProgram Comments