Add more predictable behavior for amountToCent

Pretty straightforward small additions for better calculations, fix #1