Number LessThan
rascal-0.40.17
Synopsis
Less than operator on numeric values.
Syntax
Exp₁ < Exp₂
Types
Exp₁ | Exp₂ | Exp₁ < Exp₂ |
---|---|---|
int | int | bool |
int | real | bool |
real | real | bool |
Description
Yields true
if the value of Exp₁ is numerically less than the value of Exp₂, and false
otherwise.
Examples
rascal>13 < 12
bool: false
rascal>12 < 13
bool: true
rascal>13.5 < 12
bool: false
rascal>12.5 < 13
bool: true