C++ Programming/Code/Standard C Library/Functions/modf

From Wikibooks, open books for an open world
Jump to: navigation, search

[edit] modf

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.

Related topics
frexp - ldexp
Personal tools
Namespaces

Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export