Jump to content

C Programming/math.h/modf

From Wikibooks, open books for an open world

modf is the c reference function, this function breaks number or value into its fractional and integral parts, these parts have same sign as their argument.

Variants

[edit | edit source]

In C, the function prototype of the modf function look like following:

double modf(double num, double *i);

float modf(float num, float *i);