我怎样才能在php中使用C modf函数?

似乎没有一个?

使用PHP的fmod 。

这是答案

函数modf($ x,&$ ipart)
 {
  $ ipart =(int)$ x;
 返回$ x  -  $ ipart;
 }

谢谢