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

[Converters] Add toStringNoZero() function #4765

Merged

Conversation

tonhuisman
Copy link
Contributor

Feature:

  • Add function toStringNoZero(int64_t value) that will return an empty string for value 0, and for all other values the stringified value.
    To be used for adding a value to a comma-separated string but avoiding to add unneeded zeroes, to keep the string as short as possible (like when storing in custom task-settings)

@TD-er TD-er merged commit 8c3f67f into letscontrolit:mega Aug 20, 2023
2 checks passed
@tonhuisman tonhuisman deleted the feature/Converters-add-tostringnozero branch August 20, 2023 15:15
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