Ad Widget

Collapse

Increase the number of digits for the float type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matthieu
    Member
    • Mar 2011
    • 41

    #1

    Increase the number of digits for the float type

    Hi,

    I need to store a float with a huge precision (8 digits after decimal).
    In the documentation, I find that for a float it's 16,4.

    I've found a patch that increase the number of digits to 19,4. https://support.zabbix.com/secure/at...recision.patch

    But I don't well understand, how it works, somebody can help me to modify it to update the float definition to 20,8 (I think it's a good value and that can help other Zabbix user).


    Thanks in advance

    Matthieu
    Last edited by Matthieu; 27-01-2014, 12:40.
  • Matthieu
    Member
    • Mar 2011
    • 41

    #2
    Update:

    Now I've all my digits in DB but if I check the value displayed in "latest data", I've only 6 digits after the decimal (my DB has 8). I've try to modify defines.inc.php with these values:

    define('ZBX_UNITS_ROUNDOFF_THRESHOLD', 0.00000001);
    define('ZBX_UNITS_ROUNDOFF_UPPER_LIMIT', 8);
    define('ZBX_UNITS_ROUNDOFF_MIDDLE_LIMIT', 8);
    define('ZBX_UNITS_ROUNDOFF_LOWER_LIMIT', 8);
    define('ZBX_PRECISION_10', 10);

    But same issue...

    Comment

    Working...