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

Postfix syntax for ExprRound #5696

Open
1 task done
bluelhf opened this issue May 14, 2023 · 0 comments
Open
1 task done

Postfix syntax for ExprRound #5696

bluelhf opened this issue May 14, 2023 · 0 comments
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@bluelhf
Copy link
Contributor

bluelhf commented May 14, 2023

Suggestion

The Rounding expression should support placing the number before the rounding mode, i.e. %number% rounded [(:down|:up)].

Why?

The post-fix syntax makes more grammatical sense:

  1. set {_four} to rounded down 4.5
  2. set {_four} to 4.5 rounded down

Other

While we're at it, we could update this syntax to use parse tags instead of the matched pattern index :)

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
@AyhamAl-Ali AyhamAl-Ali added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). labels May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

2 participants