YouTip LogoYouTip

C Function Fmod

## C Library function – fmod() `fmod()` The function returns the remainder of two floating-point numbers.。 ### Header file ```c #include ### Function Prototype ```c double fmod(double x, double y); ### Parameter | Parameter | Description | |------|------| | `x` | Floating-point Value | | `y` | Floating-point Value | ### Return Value Return `x` Divided By `y` the remainder of。 ### Instance The following example demonstrates how to use `fmod()` Function: ```c #include #include int main() { double x = 8.9, y = 3.5; printf("fmod(%.1f, %.1f) = %.1fn", x, y, fmod(x, y)); return 0; } #### Runtime Result fmod(8.9, 3.5) = 2.0 ### Reference links - [C Standard Library - ](#) - [Math.h Reference Manual](#)
← Jsref StatementsC Function Floor β†’