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

[Enhancement Request] Add ability to display region price always rounding up/down #138

Open
farum12 opened this issue Apr 4, 2023 · 0 comments

Comments

@farum12
Copy link

farum12 commented Apr 4, 2023

As a server admin, I want to have the ability to set up Price Format in ARM, so it will be always rounded up/down, without a float number after the comma.

Background info:
Our server has item based economy, every price (ARM and non-ARM related) is a decimal number. Our economy plugin rounds up every plugin-related price:

  • 6.2 -> 7
  • 6.8 -> 7

ARM has an option in the config called "maximumFractionDigits", but it rounds up/down depending on the number:

  • 6.2 -> 6 (but still this price is considered as 7 by the Economy plugin, as the floating point is rounded up)
  • 6.8 -> 7

This inconsistency could be solved by config option like "roundingMethod" with ability to set as "up" "down" "normal" (where normal is current method.

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

1 participant