> ## Documentation Index
> Fetch the complete documentation index at: https://starrycodes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# String - Currency & Number Formatting

> Format raw numeric strings into locale-aware, human-readable numbers with thousand separators, leveraging the intl package.

### 1. 🛠️ Formatting

**thousandNumberFormat** `String`

Applies thousand separators to a numeric string based on the default system locale (`intl` required). Handles non-numeric input safely by returning "0".

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final amountString = '10000000';
print(amountString.thousandNumberFormat); // "10,000,000"
```

**cleanNumbers** `String`

Removes all commas (,) from the string. Essential for sanitizing user input before parsing it as a number.

```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
final messyString = '10,000,000.50';
print(messyString.cleanNumbers); // "10000000.50"
```

### 🛠️ Formatting


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.