Navigation
Synopsis Equality operator on numeric values.
Syntax Exp1 == Exp2
Types
Exp1 Exp2 Exp1 == Exp2
int int bool
int real bool
real real bool
Description Yields true if the value of both arguments is numerically equal, and false otherwise.
Examples
rascal>12 == 12
bool: true
rascal>12 == 12.0
bool: true
rascal>12 == 13
bool: false
rascal>12 == 13.0
bool: false
rascal>3.14 == 3.14
bool: true
rascal>3.14 == 3
bool: false

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

Question [2].
The type of 9.2278130468099000 == 2.3485867650193880 is

Question [3].
The type of 0 == -11.7534434666915960 is

Question [4].
The type of -14.01875871083735800 == 16.8148882460754640 is

Question [5].
17 == -8.8757598896606320 == 



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.