Skip to content
Snippets Groups Projects
Commit 0b4164fe authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] DATOSHI macro

parent 0c0398a4
No related branches found
No related tags found
1 merge request!26Master
......@@ -1562,7 +1562,7 @@ int com_tx_wallet(int argc, char ** argv, char **str_reply)
for(size_t i = 0; i < l_addr_tokens_size; i++) {
if(l_addr_tokens[i]) {
uint64_t l_balance = dap_chain_ledger_calc_balance(l_ledger, l_addr, l_addr_tokens[i]);
long double l_balance_coins = (long double) l_balance / 1000000000000.0L;
long double l_balance_coins = (long double) l_balance / DATOSHI_LD ;
//dap_string_append_printf(l_string_ret, " %.3Lf (%llu) %s\n", l_balance_coins,
dap_string_append_printf(l_string_ret, "\t\u00a0%.3Lf (%llu) %s", l_balance_coins,
l_balance, l_addr_tokens[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment