We now try to find the power of 10 by which we will have to multiply the decimal part to obtain our final answer
double digits = Math . Pow ( 10 , k - 1 ) ; return ( ( long ) ( decimal_part * digits ) ) ; }