Skip to content

Sample rates precision problem #53

@shouya

Description

@shouya

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions