DOCUMENTATION CalcMe
  • language Translations of this page
    • Translations of this page
    • Català (ca)
    • Dansk (da)
    • Deutsch (de)
    • English (en)
    • Español (es)
    • Français (fr)

  1. Wiris Ecosystem Documentation
  2. CalcMe documentation
  3. Commands
  4. Arithmetic
  5. Absolute

en:calc:commands:arithmetic:absolute

Absolute

Returns the absolute value of a number.

Syntax

absolute(Real)

Description

absolute(Real)

Given a real number x, returns its absolute value open vertical bar x close vertical bar equals open curly brackets table attributes columnalign left end attributes row cell x comma space text  if  end text space x space greater or equal than 0 end cell row cell negative x comma space text  if  end text space x space less than space 0 end cell end table close

Related functions

Negative?, Positive?

Table of Contents
  • Syntax
  • Description
  • Related functions
Log In

Copyright © WIRIS 2021. All rights reserved.