Home > Electronics Tutorials > C Language Tutorial > math.h - Exponential, Logarithmic and Power Functions - modf

C Language Programming Library Reference Guide

math.h - Exponential, Logarithmic and Power Functions - modf

Declaration: double modf(double x, double *integer);

Breaks the floating-point number x into integer and fraction components.
The returned value is the fraction component (part after the decimal), and sets integer to the integer component.

Range: There is no range limit on the argument or return value.
Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......