Ask Question
25 February, 08:55

Given a positive real number, print its fractional part.

+5
Answers (1)
  1. 25 February, 10:36
    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?
Get an answer to your question ✅ “Given a positive real number, print its fractional part. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers