summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/incrbyfloat.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/incrbyfloat.md')
-rw-r--r--iredis/data/commands/incrbyfloat.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/iredis/data/commands/incrbyfloat.md b/iredis/data/commands/incrbyfloat.md
index 4998f5f..9efca1d 100644
--- a/iredis/data/commands/incrbyfloat.md
+++ b/iredis/data/commands/incrbyfloat.md
@@ -1,11 +1,12 @@
Increment the string representing a floating point number stored at `key` by the
-specified `increment`. By using a negative `increment` value, the result is that
-the value stored at the key is decremented (by the obvious properties of
-addition). If the key does not exist, it is set to `0` before performing the
-operation. An error is returned if one of the following conditions occur:
-
-- The key contains a value of the wrong type (not a string).
-- The current key content or the specified increment are not parsable as a
+specified `increment`. By using a negative `increment` value, the result is
+that the value stored at the key is decremented (by the obvious properties
+of addition).
+If the key does not exist, it is set to `0` before performing the operation.
+An error is returned if one of the following conditions occur:
+
+* The key contains a value of the wrong type (not a string).
+* The current key content or the specified increment are not parsable as a
double precision floating point number.
If the command is successful the new incremented value is stored as the new
@@ -16,7 +17,8 @@ Both the value already contained in the string key and the increment argument
can be optionally provided in exponential notation, however the value computed
after the increment is stored consistently in the same format, that is, an
integer number followed (if needed) by a dot, and a variable number of digits
-representing the decimal part of the number. Trailing zeroes are always removed.
+representing the decimal part of the number.
+Trailing zeroes are always removed.
The precision of the output is fixed at 17 digits after the decimal point
regardless of the actual internal precision of the computation.