PHP fmod 函数和算术 % 运算符 有什么区别?
这里给出差异输出
fmod(1438090136928 , 268435456)
和
1438090136928 % 268435456
什么时候使用这些函数?
编辑
哪个更快?
最佳答案
作为doc说:
Operands of modulus are converted to integers (by stripping the decimal part) before processing.
但是fmod接受浮点值并返回一个浮点值。
关于php - php fmod 函数和算术 % 运算符之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31698323/