lexmag/statix

Sample rates precision problem

Opened this issue · 0 comments

Hi I found this issue where having a sample rate of 0.001 will turns out equivalent to sending sample rate as 0.0. It was caused by the following segment of code:

[packet | ["|@", :erlang.float_to_binary(sample_rate, [:compact, decimals: 2])]]

There is no way to circumvent this limit from the user side. Should we perhaps raise the number of digits preserved?