add member function to get whole and fractional part of a decimal