Display small value in BTC is very hard in Ruby. cc/ @khoan
-
This should round small floats to 8 decimals, this happens when there is interest calculation on micro transactions
-
Satoshi#to_s shows small float instead of "0.00000320" 320 satoshis
> Satoshi.new(( interest * micro_transaction ).round(8)).to_s
> "3.2e-06"
Display small value in BTC is very hard in Ruby. cc/ @khoan
This should round small floats to 8 decimals, this happens when there is interest calculation on micro transactions
Satoshi#to_s shows small float instead of "0.00000320" 320 satoshis