Costa Tsaousis 238cb29793 /api/v2 part 10 (#14904) 1 год назад
..
tests c3dfbe52a6 netdata doubles (#13217) 2 лет назад
Makefile.am 675383b26a Makefile.am files indentation (#7252) 5 лет назад
README.md f9acc1aead More learn reorg/reordering (#14505) 2 лет назад
storage_number.c d2daa19bf5 JSON internal API, IEEE754 base64/hex streaming, weights endpoint optimization (#14493) 2 лет назад
storage_number.h 238cb29793 /api/v2 part 10 (#14904) 1 год назад

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.