SyntaxFix
Write A Post
Hire A Developer
Questions
The % operator is for integers. You're looking for the fmod() function.
%
fmod()
#include <cmath> int main() { double x = 6.3; double y = 2.0; double z = std::fmod(x,y); }