This package provides a way to perform generic math functions on numeric types. The code of this package is adapted from: https://codereview.stackexchange.com/questions/26022/generic-calculator-and-generic-number
$ dotnet add package CodeChops.GenericMathProvides a way to perform generic math functions on the following numeric types: byte, sbyte, decimal, double, float, int, uint, nint, nuint, long, ulong, short, ushort. The following operations are supported: add, subtract, multiply, divide, modulo, negate, plus, increment, decrement, leftShift, rightShift, onesComplement, and, or, xor.
Check out CodeChops projects for more projects.
Other features: