Added the decimalPlace function to code