<human>:  python: how to convert currency to decimal?
<bot>: Here is some code to convert currency string `dollars` to decimal `cents_int`

cents_int = int(round(float(dollars.strip('$')) * 100))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.