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] [Documentation] [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: 4 built-in formatters (Manual, Scientific, Alphabetic, Culture-aware with native East Asian units) 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, 4 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 scriptsRequirementsUnity 6.0 or laterClaude code reviews and documentation generation.




