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

feat: modulo operator #1256

Merged
merged 8 commits into from
Nov 2, 2024
Merged

feat: modulo operator #1256

merged 8 commits into from
Nov 2, 2024

Conversation

lars-reimann
Copy link
Member

@lars-reimann lars-reimann commented Nov 2, 2024

Summary of Changes

Add the modulo operator %. It follows Python's floor-based implementation and defines n % d as

$$ n - \left\lfloor\frac{n}{d}\right\rfloor \cdot d $$

Copy link

github-actions bot commented Nov 2, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ MARKDOWN markdown-link-check 3 0 0.63s
✅ REPOSITORY git_diff yes no 0.19s
✅ TYPESCRIPT eslint 3 0 0 4.93s
✅ TYPESCRIPT prettier 3 0 0 1.2s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.69%. Comparing base (c8f3b67) to head (9871fee).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1256   +/-   ##
=======================================
  Coverage   99.69%   99.69%           
=======================================
  Files         110      110           
  Lines       12630    12642   +12     
  Branches     4160     4167    +7     
=======================================
+ Hits        12591    12603   +12     
  Misses         39       39           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lars-reimann lars-reimann merged commit f590e7a into main Nov 2, 2024
8 checks passed
@lars-reimann lars-reimann deleted the modulo-operator branch November 2, 2024 19:23
lars-reimann pushed a commit that referenced this pull request Nov 2, 2024
## [0.21.0](v0.20.0...v0.21.0) (2024-11-02)

### Features

* make `Int` a subclass of `Float` ([#1255](#1255)) ([c8f3b67](c8f3b67))
* modulo operator ([#1256](#1256)) ([f590e7a](f590e7a))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant