Simplified money formatting code to be platform independent.
- Added test coverage.