I am developing a bitcoin wallet for education purposes, and i'm working on a
getbalance method that given an address i return the balance of the address.
Problem is, when communicating via the RPC protocol i am given the amount in a double format rather than satoshi (int). And i would like to provide the amount in Satoshi's.
How do i properly convert the double amount, into uint64 satoshi amount? Since double is not an accurate value, how do I make sure that my "users" get the correct value for their balance, or on their transactions?