Convert amount to mathematical representation