<code class="php">$fee = 0.01; $redis->incrby('num',$fee); //ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
<code class="php">$fee = 0.01; $redis->incrby('num',$fee); //ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
不是很清楚了吗.第二个参数要是int类型的