<code class="php">$fee = 0.01;$redis->incrby('num',$fee);//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
回复内容:
本&文来源gao@daima#com搞(%代@#码网@
<code class="php">$fee = 0.01;$redis->incrby('num',$fee);//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
不是很清楚了吗.第二个参数要是int类型的