Rel_query.Int
Integers.
val v : int -> int value
v i is the literal integer i.
v i
i
val zero : int value
zero is v 0.
zero
v 0
val one : int value
one is v 1.
one
v 1
val equal : int value -> int value -> bool value
equal x y is integer equality.
equal x y
val (=) : int value -> int value -> bool value
x = y is integer equality.
x = y
val (<>) : int value -> int value -> bool value
x <> y is integer inequality.
x <> y
val (<) : int value -> int value -> bool value
x < y is true iff x is stricly lower than y.
x < y
x
y
val (<=) : int value -> int value -> bool value
x <= y is true iff x is lower or equal than y.
x <= y
val (>) : int value -> int value -> bool value
val (>=) : int value -> int value -> bool value
x >= y is true iff x is greater or equal than y.
x >= y
val (~-) : int value -> int value
~-x is the negation of x.
~-x
val (+) : int value -> int value -> int value
x + y is integer addition.
x + y
val (-) : int value -> int value -> int value
x + y is integer subtraction.
val (*) : int value -> int value -> int value
x * y is integer addition.
x * y
val (/) : int value -> int value -> int value
x / y is integer division.
x / y
val of_bool : bool value -> int value
of_bool b is b as an integer value.
of_bool b
b
val of_int64 : int64 value -> int value
of_int64 i is i as an integer value. FIXME. Clarify conversion.
of_int64 i
val of_float : float value -> int value
of_float f is f as an integer value. FIXME. Clarify conversion.
of_float f
f
val of_string : string value -> int value
of_string s converts s to string if s can't be parsed this results in 0.
of_string s
s
0