Navigation
Synopsis Subtract two numeric values.
Syntax Exp1 - Exp2
Types
Exp1 Exp2 Exp1 - Exp2
int int int
int real real
real real real
Description Yields the numerical result of subtracting the value of Exp2 from the value of Exp1.
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

Questions
Question [1].
The type of -9 - 15 is

Question [2].
The type of -1 - -8.9476747289569040 is

Question [3].
The type of 1.6096595947632280 - 16 is

Question [4].
-15.63705018660749080 - 17.4252488945536640 == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.