Tezt_tezos.TezSourceHelpers for dealing with units of tez.
Please note that none of the functions here perform any bounds checks.
A unit of tez
Make t from the whole number of tez. This doesn't perform any bounds checks.
Make t from the whole number of micro tez. This doesn't perform any bounds checks.
Make t from the whole number of micro tez. This doesn't perform any bounds checks.
Parsing. Parse a floating point number of tez.
Any string of digits followed by an optional point and another string of digits should parse successfully, provided that the expressed number is within bounds allowed for tez (up to 6 decimal places). For example: "123.4356" will parse, while "1.24723953794217492" won't, because it's too precise.