def currency_to_protocol(amount):
if type(amount) in [float, int]:<EOL><INDENT>amount = "<STR_LIT>" % amount<EOL><DEDENT>return int(amount.replace("<STR_LIT:.>", '<STR_LIT>'))<EOL>
Convert a string of 'currency units' to 'protocol units'. For instance
converts 19.1 bitcoin to 1910000000 satoshis.

Input is a float, output is an integer that is 1e8 times larger.

It is hard to do this conversion because multiplying
floats causes rounding nubers which will mess up the transactions creation
process.

examples:

19.1 -> 1910000000
0.001 -> 100000