Implemented null handling
Added new test cases
Added formatDecimal()