Everything

modf / modff / modfl


Breaks a floating-point number into integral and fractional parts.

[Format]

#include <math.h>

double modf (double a, double*b);

float modff (float a, float *b);

long double modfl (long double a, long double *b);

[Parameters]

a Floating-point number to be broken into integral and fractional parts

b Pointer indicating storage area that stores integral part

[Return values]

Fractional part of a