public static class Value.Int extends Value.Discrete
Type.INT
.Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
int |
n
The
int of 'this' Int Value. |
Constructor and Description |
---|
Int(int n) |
Modifier and Type | Method and Description |
---|---|
double |
AoM()
Return zero, i.e., Ints are "exact".
|
Value |
bOp(int op,
Value rgt)
Apply binary operator 'op', that is '+', '-', '*', '/' or
the comparisons, to 'this' Int, and to 'rgt'.
|
int |
n()
The Java
int , 'n', itself. |
java.lang.String |
toString()
Return the String (numeral) of 'this' Int.
|
Type |
type()
The Type is
Type.INT . |
Value |
uOp(int op)
Apply unary operator op, that is '+' or '-', on 'this' Int.
|
double |
x()
Float the
n() to a double . |
public int n()
int
, 'n', itself.n
in class Value.Discrete
public Value uOp(int op)
Value.Cts.uOp(int)
.public Value bOp(int op, Value rgt)
bOp
in class Value.Discrete