Most applications have to deal with currencies in some way or another and unfortunately it isn't always straightforward due to database limitations. Among a few different solutions to how to store currency in the database my choice always is storing it in cents as an integer.