I'm creating a rails app where users will have an account balance in Ethereum and possibly other cryptocurrencies. Currently, I am storing the user's balance as afloat. This, however, is a really bad approach as cryptocurrencies are usually divisible down to 8 digits so any floating-point error will cause a huge loss/gain in funds. How can I store the user's balance (what datatype should I use) so as to not cause floating-point errors? Thanks