Skip to content

bx btc to satoshi

evoskuil edited this page Oct 20, 2014 · 11 revisions

Convert BTC to satoshi.

$ bx btc-to-satoshi --help
Usage: bx btc-to-satoshi [-h] [--config VALUE] [BTC]                     

Info: Convert BTC to satoshi.                                            

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.

Arguments (positional):

BTC                  The number of BTC to convert. If not specified the  
                     value is read from STDIN.

Example 1

$ bx btc-to-satoshi 42
4200000000

Example 2

maximum coinage

$ bx btc-to-satoshi 20999999.9769
2099999997690000

Example 3

maximum representable in bx (64 bit unsigned integer)

$ bx btc-to-satoshi 184467440737.09551615
18446744073709551615

Example 4

piped commands, round trip

$ bx satoshi-to-btc 18446744073709551615 | bx btc-to-satoshi
184467440737.09551615
18446744073709551615

BX Menu

Clone this wiki locally