epics-modules / caPutLog

Channel Access Put Logger, from DESY/BESSY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging double values uses loses precision

anjohnson opened this issue · comments

The code here for logging float and double values to JSON uses a "%g" conversion, which is insufficient for some of my users. The yajl_gen implementation in EPICS 7 uses "%.17g" and appends ".0" if the previous string only contains digits and/or a minus sign. I will be developing a PR shortly to use that approach instead (or possibly just call yajl_gen to do it).

Duplicate of #29, the newer issue better describes my preferred solution.