Floating Point Issues on C related Questions and Answers


Question :   Which of the following statement obtains the remainder on dividing 5.5 by 1.3 ?
1. rem = (5.5 % 1.3)
2. rem = modf(5.5, 1.3)
3. rem = fmod(5.5, 1.3)
4. Error: we can't divide
Answer :   3 - rem = fmod(5.5, 1.3)  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter