Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing metric values as float #12

Open
SylvainLosey opened this issue Jun 16, 2018 · 1 comment
Open

Storing metric values as float #12

SylvainLosey opened this issue Jun 16, 2018 · 1 comment

Comments

@SylvainLosey
Copy link

Is there a way to store statistics as floats ? Would switching the value model from int to float cause a malfunction of the module ?

And is there a reason for storing data as int instead of floats ? For some values the decimals are the important values and it's not very convenient to have to change the decimal place when storing the data.

@pennersr
Copy link
Owner

An int was chosen as that covers most use cases in an efficient manner. Though, that choice indeed does not fit everywhere. Using a float field may not be everybody's cup of tea as well, as there you run the risk of precision loss. All in all, there is no right choice here. So perhaps the best way forward is to make this configurable somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants