The numeric value to format (can be null or undefined)
Optional
type: NumberType = NumberType.TokenNonTxThe formatting type to apply
Optional
placeholder: string = '-'Value to return if input is null or undefined
The formatted number as a string
Formats a numeric value according to the specified number type formatting rules.
This function serves as the main entry point for number formatting throughout the application. It applies consistent formatting based on the context where the number is displayed (e.g., token amounts, fiat prices, portfolio balances) using predefined formatter rules.