Skip to content

Sample rates precision problem #53

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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