[Contents] ·
[Home] ·
[Mail]

## SALIERI Language - Operator "-" (_MINUS)

** Type:**

_MINUS: int x int -> int

_MINUS: real x real -> real

** Call syntax:**

_MINUS(*x*,
*y*)

*x* -
*y*

** Description:**

The binary infix operator "-" realises arithmetic
subtraction on integers and reals;
there is a corresponding
predefined function *_MINUS*, such that
*a - b* and
*_MINUS(a,b)* are equivalent expressions.

In expressions, "-" binds stronger than the relative and
equality operators, but weeker than multiplication, division,
and the length operator (#).

** Example:**

> 1-3

*Result= -2*

> 10.5-0.3

*Result= 10.2*

> 5-10.3

*Result= -5.3*

** See also:**
Operators and Expressions.

[Contents] ·
[Home] ·
[Mail]

*© sic!systems, page frame designed by
hh;
this page has been automatically generated from the SALIERI
Documentation Database.
*