Maybe I am missing something, but (btc * coinUtil.COIN).toFixed(8) isn't enough to handle this?