Decimal number Function

Tested and working