Big Numbers API
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
const numbers = RundotGameAPI.numbers
const currency = numbers.normalize('BE:1.23e9')
const display = numbers.format.incremental(currency) // "1.23B"Type Checking
// Check if a value is a big number
const isBig = numbers.isBigNumber(someValue)Progression Math
Geometric Series Costs
const totalCost = numbers.calculateGeometricSeriesCost(
baseCost, // e.g., 10
1.15, // multiplier
currentLevel,
25, // quantity to purchase
)Max Affordable
Direct Decimal Usage
API Reference
Method
Description
Best Practices
Last updated