as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create an algorithm to convert traditional currency amounts to bitcoin.
user
the algorithm should take into account the current exchange rate for the traditional currency and inputted amount, then convert the amount to bitcoin at the current rate of exchange. for example, if the current exchange rate is usd to btc at 1 btc to $8,000, then $100 would be equal to 0.0125 btc. the algorithm should also have error handling for any incorrect inputs given.
assistant