A fast, clean BigNumber struct for idle and incremental games. Any magnitude, four display formats, full math utilities, and customizable suffixes. Full source included.NumberForge is a lightweight BigNumber library for Unity — built specifically for idle games, incremental games, and any project where values routinely blow past what a double or long can hold.It gives you a single readonly struct with a clean, familiar API: standard arithmetic operators, implicit conversions from int, long and double, and full compatibility with Unity's Lerp and math patterns. Pick it up and start adding numbers in minutes.Key features:Arbitrarily large positive and negative numbers — mantissa/exponent representation with around 15 significant digits of precision at any scaleFour built-in display formats — Short (1.5K), Long (1.5 Thousand), Scientific (1.5e6), and Engineering (150e3)FormatOptions per call — control decimal places, trailing zero trimming, and sign characters without changing any global stateCustomizable suffix lists — subclass BigNumberNames and assign it once to replace K/M/B with any notation your game usesFull math API — Add, Subtract, Multiply, Divide, Lerp, Abs, Min, Max, Clamp, Floor, Ceil, Sqrt, Pow, Log10Mixed-type operators — combine BigNumber directly with int, long, and double without manual castingTryParse and round-trip ToString — safe parsing from save data and string interpolation without surprisesIsZero, IsPositive, IsNegative convenience propertiesIComparable, IEquatable, and IFormattable interfaces fully implementedSerializable attribute — compatible with JSON serializers and custom save systemsAssembly definition included — clean integration with any project structureDemo scene included — animated resource counter, live format comparison across all four notations, and a Lerp progress bar, ready to open and exploreFor questions or issues, contact nregoblin@gmail.com — quick replies guaranteed.Unity Version: 2022.3 LTS or later (compatible with 2023 and Unity 6)Render Pipelines: None — runtime only, no rendering dependencyPlatform: All platforms supportedDependencies: NoneSource Code: Full C# source included, no precompiled DLLsAssembly Definition: ScriptGoblin.NumberForge — autoReferenced, clean project integrationStruct: readonly struct with normalized mantissa/exponent representation, around 15 significant digits of precision at any magnitudeFormatting: Four built-in notations — Short (K/M/B), Long (Thousand/Million), Scientific, Engineering — switchable per call via FormatOptionsCustom Names: Subclass BigNumberNames and assign to BigNumberNames.Current to replace all suffixes project-wideSerialization: Marked [Serializable]; round-trips through ToString and TryParse for use with JSON and custom save systemsMath: Lerp, Abs, Min, Max, Clamp, Floor, Ceil, Sqrt, Pow, Log10 — all returning BigNumberDemo: Animated demo scene included — showcases BigNumber arithmetic, all four display formats side by side, Lerp, Clamp, Sqrt, Pow, and Log10 on a live animating valueDocumentation: XML doc comments on all public API members; full IntelliSense support





