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

fix: Trailing 0 and . not trimmed #293

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

Tinyblargon
Copy link
Collaborator

The proxmox ui removes trailing 0 and . from floating point numbers, while we do not.
This results in settings in the config being visually different when created by the this library or the proxmox gui.
Example:

  • gui: mbps_rd=10.00
  • library: mbps_rd=10

This changes the formatting so the gui and library produce the same values.

Work done:

  • Created floatToTrimmedString()
  • Added tests for floatToTrimmedString()
  • Updated existing unit test to account for the new number formatting (removed trailing zero)

@mleone87 mleone87 merged commit 06f2d36 into Telmate:master Jan 9, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants