Question: Fractional part function

Fractional part of a negative number is always positive. But maple command frac(-7.8) gives -0.8 instead of 0.2. Why is this? Though we can find it by using 1-frac(x), maple command may be there to give fractional part for all real numbers as per definition.

Like frac(9.8)=0.8 and frac(-9.8)=0.2.

Is there a command in maple?

Thanks. Ramakrishnan V

Please Wait...