#include <math.h>
float modf (
floatval, /* value to calculate modulo for */
float *ip); /* integer portion of modulo */
Description
The modf function splits the floating-point number
val into integer and fractional components. The
fractional part of val is returned as a signed floating-point number.
The integer part is stored as a floating-point number at ip.
Return Value
The modf function returns the signed fractional part of
val.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.