Ask Question
20 October, 17:50

Given a positive real number, print its fractional part.

+1
Answers (1)
  1. 20 October, 20:22
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers