Post
Topic
Board Development & Technical Discussion
Re: how to handle btc in javascript
by
coinpr0n
on 25/01/2015, 20:59:42 UTC
Update:  for your above..

parseFloat("15854420.40053001").toFixed(Cool;

 Cheesy your toFixed8 got converted to a smiley.  I've used both methods, the float and just integer and count satoshis. I like the satoshi approach more when storing in my DB IMO.

I agree. Usually use integers too. And I think I remember blockchain.info's API also works that way.