Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C
how to modulo decimal c
joe
Programming language:
C
2021-03-28 14:18:37
0
Q:
how to modulo decimal c
Jefferson Goldwin
Code:
C
2021-04-02 10:10:58
#include <math.h> int main(void) { // use the fmod() function printf("%f", fmod(0.5, 2.0)); }
2
Tags
how
Related
print double with 2 decimals c
factorial of a given number in c
multiplication in c
adding digits of a number in c
New to Communities?
Join the community