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

en:calc:commands:arithmetic:compare

Compare

Given two real numbers x and y, compare function is defined as

text compare end text left parenthesis x comma y right parenthesis space equals space open curly brackets table attributes columnalign left end attributes row cell 1 comma space text  if  end text space x space greater than space y end cell row cell negative 1 comma space text  if  end text space x space less than space y end cell row cell 0 comma space text  if  end text space x space equals space y end cell end table close

Syntax

compare(Real, Real)

Description

compare(Real, Real)

Given two reals x and y, returns its comparison as defined above.

Related functions

Maximum, Minimum

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

Copyright © WIRIS 2021. All rights reserved.