Convert among different units of measure for Bitcoin.
1 2 3 4 5 6 7
a numeric value.
the units of
This complete conversion function,
convert_btc, converts a value
x among the following units: BTC, mBTC, bits and satoshi.
These are the recommended ways of specifying the
to arguments, though BTC and mBTC
may be passed as btc and mbtc, respectively. BTC may also be written out as Bitcoin/bitcoin and will also be internally converted to BTC.
Three shorthand functions,
satoshi, are also available if you forget the conversion.
These assume the input is Bitcoin and multiply your value straight to mBTC, bits or satoshi, respectively. See examples.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.