modf 是 c 引用函式,此函式將數字或值分解為小數部分和整數部分,這些部分與他們的自變數有相同符號。
在 C 中,modf 函式的函式原型如下所示
double modf(double num, double *i); float modf(float num, float *i);