Frac-func
This function returns the fractional part of a number.
double frac( double x)
x
Returns the fractional part of input x.
frac(3.1415) = ; //should return 0.1415