View on Asset Store (opens in new tab)
Package details
- Latest version
- 2.3.0
- Last updated
- First released
- Unity version
- 6000.0.77 or later
- Package size
- 22.2 MB
- Files
- 235
- Favorites
- 22
- Views in the past week
- 29
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $14.99 on
Keywords
Infinite Value (BigDecimal)
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.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Infinite Value (BigDecimal) screenshot 1
About this asset
[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.
Features
- Arbitrary precision: integer or decimal with any digit count; values up to ~±10^4,294,967,295 with precision down to 10^−2,147,483,648
- Primitive-like API: arithmetic (+, -, *, /, %), bitwise, and comparison operators; implicit casts from all numeric primitives
- Formatter 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 component
- Inspector drawer: edit values directly, access raw digits and exponent, call transform methods with one click, and view all read-only properties, all sections configurable
- Input field component: InfValInputField turns any InputField or TMP_InputField into an InfVal field with validation modes, sign constraints, and per-component formatter override
- Math & interpolation: 30+ methods in MathInfVal (Abs, Pow, Sqrt, Log, Clamp, RandomRange, …) and 10+ interpolation modes in InterpolateInfVal including ease in/out and angle variants
- Performant: explicit precision control, in-parameter passing, and ToString() caching keep real-time use efficient
- Full sources: all scripts included with comments and summaries
Content
- Infinite value type: the InfVal struct separated in multiple files
- Formatter system: IInfValFormatter, FormatterAsset, 5 built-in formatters
- Support classes: MathInfVal, InterpolateInfVal, InfValInputField UI component
- Tests: NUnit test suite and custom randomized bulk tests
- Demo: a complete clicker-game demo with a save system, a scriptable-object database, and reusable UI scripts
From the publisher's Asset Store listing.
Technical details
Unity 6.0 or later (tested up to 6.6).
Need an older version? Contact me, it can be easily backported.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.77f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.