floating-point remainder value function : Mod « Math « C / ANSI-C






floating-point remainder value function

#include <math.h>
#include <stdio.h>

int main(void)
{
  printf("%1.1f", fmod(10.0, 3.0));

  return 0;
}


           
       








Related examples in the same category

1.Mod and divide
2. Return remainder of floating point division: fmod Return remainder of floating point division: fmod
3.Split floating-point value into fractional and integer parts: how to use modf
4.Use the mod % operator