0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-16 02:24:15 +00:00
netdata_netdata/libnetdata/storage_number
Joel Hans a726c905bd
Change "netdata" to "Netdata" in all docs ()
* First pass of changing netdata to Netdata

* Second pass of netdata -> Netdata

* Starting work on netdata with no whitespace after

* Pass for netdata with no whitespace at the end

* Pass for netdata with no whitespace at the front
2019-08-13 08:07:17 -07:00
..
Makefile.am modularized all source code () 2018-10-15 23:16:42 +03:00
README.md Change "netdata" to "Netdata" in all docs () 2019-08-13 08:07:17 -07:00
storage_number.c incremental overflows should not show zeros values () 2018-11-04 21:53:19 +02:00
storage_number.h fix incorrect use of isnormal() () 2019-03-21 19:14:14 +02:00

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.

analytics