Closed tw-bert closed 6 years ago
I have no idea if this is a Redis limitation or a ZeroBrane limitation.
As far as I remember, it was Redis limitation; you may be able to confirm if you turn verbose
option on, as it will show details on what was sent and received from Redis: redis = {verbose = true}
.
Checked:
<redis rcvd> +<value> request_curr = {[\"now\"]=2.01802e+07; [\"now_debug_str\"]=\"20180212.104500\";}
(@pkulchenko:)
As far as I remember, it was Redis limitation
Yes, that's my conclusion as well: Redis limitation / issue. @itamarhaber : Is there a setting or parameter to set the redis-side serialization format for floats?
ok; thank you for the update. closing.
Redis
4.0.8
, redis.lua0.36
High precision floats/doubles (numbers) have precision loss, while viewing for debugging only. The actual value is fine, but can't be shown in ZeroBrane. I have no idea if this is a Redis limitation or a ZeroBrane limitation.
See the following code:
And the Stack: (obviously, 'now' has lost precision) Remote Console gives similar issues.
I tried (
user.lua
):But that gives: