Numbers of any size and precision in Unity. Behaves like a primitive type, works in real-time, and is fully configurable. Perfect for incremental games, RPGs, and monetary systems.[Website] [Online Demo] [User Manual] [Public API]InfVal is an arbitrary-precision number type for Unity.It stores any integer or decimal value and behaves like a primitive: full arithmetic, comparison, and bitwise operators, implicit casts from all numeric types, and direct inspector support.Designed for real-time use and fully serializable.Perfect for incremental games, RPGs, or any system where standard numeric types overflow or lose precision.FeaturesArbitrary precision: integer or decimal with any digit count; values up to ~±10^4,294,967,295 with precision down to 10^−2,147,483,648Primitive-like API: arithmetic (+, -, *, /, %), bitwise, and comparison operators; implicit casts from all numeric primitivesFormatter system: 5 built-in formatters (Manual, Scientific, Alphabetic, Culture-aware with native East Asian units, Conway-Guy number names) and a custom formatter interface; assign formatters project-wide or per componentInspector drawer: edit values directly, access raw digits and exponent, call transform methods with one click, and view all read-only properties, all sections configurableInput field component: InfValInputField turns any InputField or TMP_InputField into an InfVal field with validation modes, sign constraints, and per-component formatter overrideMath & interpolation: 30+ methods in MathInfVal (Abs, Pow, Sqrt, Log, Clamp, RandomRange, …) and 10+ interpolation modes in InterpolateInfVal including ease in/out and angle variantsPerformant: explicit precision control, in-parameter passing, and ToString() caching keep real-time use efficientFull sources: all scripts included with comments and summariesContentInfinite value type: the InfVal struct separated in multiple filesFormatter system: IInfValFormatter, FormatterAsset, 5 built-in formattersSupport classes: MathInfVal, InterpolateInfVal, InfValInputField UI componentTests: NUnit test suite and custom randomized bulk testsDemo: a complete clicker-game demo with a save system, a scriptable-object database, and reusable UI scriptsUnity 6.0 or later (tested up to 6.6).Need an older version? Contact me, it can be easily backported.Claude Code was used in the latest updates to assist with implementation, automated testing, and documentation. I manually verify all changes.


