Hello,
I need a function which returns the fraction part of a number.
I mean if the input to the function is 5.678, I need the output to be 0.678.
Is there a built in function to do so in C++?
Thank you
arian
Hello,
I need a function which returns the fraction part of a number.
I mean if the input to the function is 5.678, I need the output to be 0.678.
Is there a built in function to do so in C++?
Thank you
arian
You could #include <cmath> and use std::fmod.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thanks