特佐斯(Tezos)的最小货币单位是多少?
1 个回答
- 投票数
当前1tez(1 XTZ)可整除到小数点后六位,最小的单位称为microtez .
1tez=1,000,000微tez
在代码中称为mutez
,并且在 src/proto_alpha/lib_protocol/qty_repr.ml (大约94行):
let one_mutez = 1L
let one_cent = Int64.mul one_mutez 10_000L
let fifty_cents = Int64.mul one_cent 50L
(* 1 tez = 100 cents = 1_000_000 mutez *)
let one = Int64.mul one_cent 100L
let id = T.id
Currently 1 tez (1 XTZ) is divisible to six decimal places, and the smallest unit is called a micro tez.
1 tez = 1,000,000 micro tez
In code it is referred to as mutez
and it is defined in src/proto_alpha/lib_protocol/qty_repr.ml (circa line 94):
let one_mutez = 1L
let one_cent = Int64.mul one_mutez 10_000L
let fifty_cents = Int64.mul one_cent 50L
(* 1 tez = 100 cents = 1_000_000 mutez *)
let one = Int64.mul one_cent 100L
let id = T.id
Tezos中最小的货币单位是什么,在代码中它在哪里定义?