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. Sign0

en:calc:commands:arithmetic:sign0

Sign0

Returns the sign of a number.

Syntax

sign0(Real)

Description

sign0(Real)

Given a real number x different from zero, returns its sign: text sign0 end text left parenthesis x right parenthesis equals open curly brackets table attributes columnalign left end attributes row cell 1 comma space text if  end text space x greater than 0 end cell row cell negative 1 comma space text if  end text space x less than 0 end cell end table close

Related functions

Sign, Positive?, Negative?

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

Copyright © WIRIS 2021. All rights reserved.