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

Math.DivRem not implemented #2615

Closed
jwosty opened this issue Nov 15, 2021 · 0 comments
Closed

Math.DivRem not implemented #2615

jwosty opened this issue Nov 15, 2021 · 0 comments

Comments

@jwosty
Copy link
Contributor

jwosty commented Nov 15, 2021

Description

Fable does not provide a replacement for DivRem. It should be pretty straightforward:

type Math =
    // to support both ways to invoke it
    static member DivRem (a,b,result:byref<int>) =
        result <- a%b
        a/b
    static member DivRem (a,b) : int = a/b,a%b

For the record, the BCL also provides int64 overloads.

Related information

  • Fable version: 3.4.7
  • Operating system
alfonsogarciacaro added a commit that referenced this issue Nov 23, 2021
alfonsogarciacaro added a commit that referenced this issue Nov 23, 2021
alfonsogarciacaro added a commit that referenced this issue Nov 23, 2021
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

No branches or pull requests

2 participants