Home > Backend Development > PHP Tutorial > redis ERR value is not an integer or out of range

redis ERR value is not an integer or out of range

WBOY
Release: 2016-06-06 20:25:46
Original
5130 people have browsed it

<code class="php">$fee = 0.01;
$redis->incrby('num',$fee);
//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
Copy after login
Copy after login

回复内容:

<code class="php">$fee = 0.01;
$redis->incrby('num',$fee);
//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?</code>
Copy after login
Copy after login

不是很清楚了吗.第二个参数要是int类型的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template