Refactoring precise decimal