Skip to content

ModInt #3

@hexthedev

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

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