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

Add math expansion variables. #988

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Add math expansion variables. #988

merged 1 commit into from
Apr 3, 2024

Conversation

somiaj
Copy link
Collaborator

@somiaj somiaj commented Apr 2, 2024

This adds new expansion variables $[math.+.<x>,<y>], $[math.-.<x>.<y>], $[math.*.<x>.<y>], $[math./.<x>,<y>], $[math.%.<x>,<y>], and $[math.^.<x>,<y>] which can be used to do basic integer mathematics on the integers <x> and <y>. The comma in <x>,<y> is to allow for a future possibility of using floats. This also updates the default-config to use these expansion variables instead of a shell to do the mathematics in its size computation.

@somiaj somiaj force-pushed the js/math-expansion branch 2 times, most recently from 609a777 to 271f797 Compare April 2, 2024 18:22
@ThomasAdam ThomasAdam added the type:enhancement Augmenting an existing feature label Apr 2, 2024
@ThomasAdam ThomasAdam self-assigned this Apr 2, 2024
@ThomasAdam ThomasAdam added this to the 1.1.1 milestone Apr 2, 2024
@somiaj somiaj force-pushed the js/math-expansion branch from d2501e5 to 0947c69 Compare April 2, 2024 20:10
  This adds new expansion variables $[math.+.<x>,<y>],
  $[math.-.<x>,<y>], $[math.*.<x>,<y>], $[math./.<x>,<y>],
  $[math.%.<x>,<y>], and $[math.^.<x>,<y>], which can be
  used to do basic integer mathematics on the integers <x> and <y>.
  The comma in <x>,<y> allows for using floats in the future.

  This also updates the default-config to use these expansion
  variables instead of a shell to do the mathematics in its size
  computation.
@somiaj somiaj force-pushed the js/math-expansion branch from 0947c69 to dd08342 Compare April 2, 2024 20:36
@ThomasAdam ThomasAdam merged commit e068342 into main Apr 3, 2024
5 checks passed
@ThomasAdam ThomasAdam deleted the js/math-expansion branch April 3, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Augmenting an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants