summaryrefslogtreecommitdiffstats
path: root/libnetdata/storage_number
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-10-18 17:31:52 +0300
committerGitHub <noreply@github.com>2018-10-18 17:31:52 +0300
commite76aac74e69c7dd03060e800e206eee777661a0c (patch)
treefa8e082b99d4d85c950f3d5d25385f9d14980c6f /libnetdata/storage_number
parent15408ace0c2a81986026dd66446bb216c9b96eb6 (diff)
moved related wiki pages into the repo (#4428)
* moved related wiki pages into the repo * updated web server docs * fixed typos
Diffstat (limited to 'libnetdata/storage_number')
-rw-r--r--libnetdata/storage_number/README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/libnetdata/storage_number/README.md b/libnetdata/storage_number/README.md
index e69de29bb2..206c42b873 100644
--- a/libnetdata/storage_number/README.md
+++ b/libnetdata/storage_number/README.md
@@ -0,0 +1,10 @@
+# netdata storage number
+
+Although `netdata` does all its calculations using `long double`, it stores all values using
+a **custom-made 32-bit number**.
+
+This custom-made number can store in 29 bits values from `-167772150000000.0` to `167772150000000.0`
+with a precision of 0.00001 (yes, it's a floating point number, meaning that higher integer values
+have less decimal precision) and 3 bits for flags.
+
+This provides an extremely optimized memory footprint with just 0.0001% max accuracy loss.