ligo/src/test/contracts/tez.ligo

17 lines
541 B
Plaintext
Raw Normal View History

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