Number Subtraction
rascal-0.40.17
Synopsis
Subtract two numeric values.
Syntax
Exp₁ - Exp₂
Types
Exp₁ | Exp₂ | Exp₁ - Exp₂ |
---|---|---|
int | int | int |
int | real | real |
real | real | real |
Description
Yields the numerical result of subtracting the value of Exp₂ from the value of Exp₁.
Examples
rascal>13 - 12
int: 1
rascal>13.5 - 12
real: 1.5
rascal>12 - 13
int: -1
rascal>12 - 13.5
real: -1.5