mirror of
https://github.com/netdata/netdata.git
synced 2025-04-28 14:42:31 +00:00
![]() * make remark access all directories * detailed fix after autofix by remark lint * cross check autofix for this set of files * crosscheck more files * crosschecking and small fixes * crosscheck autofixed md files |
||
---|---|---|
.. | ||
Makefile.am | ||
README.md | ||
storage_number.c | ||
storage_number.h |
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.