Ask Question
16 December, 08:57

Given a positive real number, print its fractional part.

+2
Answers (1)
  1. 16 December, 09:03
    0
    The modf () function will do this for you:

    double x, y, d;

    x = - 14.876;

    y = modf (x, &d);

    printf ("Fractional part = %lf/n", y);
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given a positive real number, print its fractional part. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers