flask-change-microservice
flask-change-microservice copied to clipboard
Fixed issue with conversion.
When we put 2.53, the result will be 10 quarters and 2 pennies. But should be 10 quarters and 3 pennies. The issue is due to 1) amount *100 which will be 252.999 2) int that makes truncation. So it's better to use round here instead of int.