2019-09-27 17:33:25 +04:00
|
|
|
const add_tez : tez = 21mtz + 0.000021tz;
|
2019-06-13 10:27:54 +04:00
|
|
|
const sub_tez : tez = 21mtz - 20mtz;
|
2019-10-11 23:35:23 +04:00
|
|
|
(* This is not enough. *)
|
2019-06-13 10:27:54 +04:00
|
|
|
const not_enough_tez : tez = 4611686018427387903mtz;
|
2019-10-11 23:35:23 +04:00
|
|
|
|
|
|
|
|
|
|
|
const nat_mul_tez : tez = 1n * 100mtz;
|
|
|
|
const tez_mul_nat : tez = 100mtz * 10n;
|
|
|
|
|
|
|
|
const tez_div_tez1 : nat = 100mtz / 1mtz;
|
|
|
|
const tez_div_tez2 : nat = 100mtz / 90mtz;
|
|
|
|
const tez_div_tez3 : nat = 100mtz / 110mtz;
|
2019-10-11 23:54:22 +04:00
|
|
|
|
|
|
|
const tez_mod_tez1 : tez = 100mtz mod 1mtz;
|
|
|
|
const tez_mod_tez2 : tez = 100mtz mod 90mtz;
|
|
|
|
const tez_mod_tez3 : tez = 100mtz mod 110mtz;
|