C++ Programming/Code/Standard C Library/Functions/modf
< C++ Programming < Code < Standard C Library < Functionsmodf
Syntax |
#include <cmath>
double modf( double num, double *i );
|
The function modf() splits num into its integer and fraction parts. It returns the fractional part and loads the integer part into i.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.