A comprehensive collection of numeric extensions for .NET that brings expressive mathematical operations to primitive types.
- Type-Safe Extensions: Methods for all primitive numeric types
- Expressive Syntax: Chainable operations that read like natural math
- Bit Manipulation: Full suite of bitwise operations
- Mathematical Utilities: Common operations like clamping and rounding
- Cross-Platform: Supports 32-bit and 64-bit architectures
- No Dependencies: Pure .NET Standard library
dotnet add package Whazeted.Std.Mathly
// Fluent math operations
var result = 5.Add(3).Multiply(2); // (5 + 3) * 2 = 16
// Bit manipulation
var masked = 0b10110011.And(0b00111100); // 0b00110000
// Math utilities
var clamped = 150.Clamp(0, 100); // 100
MIT License - See LICENSE for details.