Skip to content

ModInt #3

Description

@hexthedev

Would be fun to define objects for doing mod mathmatics. I see it kind of like this:

ModInt x = new ModInt(5, 26)
ModInt y =x + 27
Console.WriteLine(y) // prints 7 

Basically overloads all the operators and has explicit casts so that mod math works. It's like having a new primative that works in mod space

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions