Chris Akritidis aef3f517a5 Libnetdata readmes learn (#14416) 2 лет назад
..
tests c3dfbe52a6 netdata doubles (#13217) 2 лет назад
Makefile.am 675383b26a Makefile.am files indentation (#7252) 5 лет назад
README.md aef3f517a5 Libnetdata readmes learn (#14416) 2 лет назад
storage_number.c afe1b70485 dbengine free from RRDSET and RRDDIM (#13772) 2 лет назад
storage_number.h 98e77284cb Set value to SN_EMPTY_SLOT if flags is SN_EMPTY_SLOT (#13417) 2 лет назад

README.md

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.