Gets the raw amount as a bigint value. This represents the amount in the smallest unit (e.g., wei for ETH, satoshis for BTC).
The raw amount as a bigint
Gets the number of decimal places for this currency.
The number of decimal places
Formats the currency amount using abbreviated notation (K, M, B, T). Examples: 1,500 -> "1.5K", 2,500,000 -> "2.5M", 1,000,000,000 -> "1B"
Optional
decimalPlaces: numberOptional number of decimal places for the abbreviated value (default: 1)
Formatted string with K/M/B/T suffix
Formats the currency amount to a string with a specified number of decimal places.
The number of decimal places to display
Formatted string with the specified decimal places
Converts the currency amount to a string representation.
String representation of the amount
Interface for representing currency amounts with precise decimal handling. Provides methods for accessing the raw amount, decimal precision, and various formatting options.