書式 double modf(double a,double *b);
機能 浮動小数点値aを整数と小数に分解し、ポインタbの指す場所へ整数部を格納する。
戻り値 aの小数部。
ヘッダーファイル math.h
使用例