Utils#
Calculate#
- class defichain.transactions.utils.Calculate#
Converter#
- class defichain.transactions.utils.Converter#
- static int_to_float(i: int) float #
Turns a given integer number into a float with eight decimal places
1111 -> 0.00001111 122222222 -> 1.22222222
- Parameters:
i – Integer number
- Returns:
returns the float number shifted by eight decimal places
- static float_to_int(f: float) int #
Turns a given float number with eight decimal places into an integer
0.00001111 -> 1111 1.22222222 -> 122222222
- Parameters:
f – Float number
- Returns:
returns the integer number shifted by eight decimal places
Token#
- class defichain.transactions.utils.Token#
Verify#
- class defichain.transactions.utils.Verify#