Refactored GetDecimalNumber and GetRomanNumber methods