# Numbers, currencies and locales

Part of Corner cases by Baltor.

Decimal and group separators by locale, currency formats and their minor units, phone number formats, radix parsing and exact comparison of two proportions.

## What to watch for

- 1.234 is one thousand two hundred thirty-four in German and about one and a quarter in English.
- The yen has no minor unit and the Bahraini dinar has three.
- Two percentages cannot be compared without their denominators.

## Components

- [Number formatting by locale](https://baltor.ai/components/number-formatting-by-locale-abc707c8): Number formatting by locale: thousands and decimal separators, symbol side, spacing and decimal digits: 8 rows with a JSON Schema, a checked loader and tests. Name `localeFormats.json`, licence MIT, 8 files.
- [Locales with their decimal and group separators](https://baltor.ai/components/locales-with-their-decimal-and-group-separators-b641dac1): Locales with name, country, language and number decimal/group separators: 358 rows with a JSON Schema, a checked loader and tests. Name `locales.json`, licence MIT, 8 files.
- [Currency display format by locale](https://baltor.ai/components/currency-display-format-by-locale-97580133): Currency display format by locale: symbol, decimal and group separators, precision and pattern: 358 rows with a JSON Schema, a checked loader and tests. Name `currency-format.v2.json`, licence MIT, 8 files.
- [ISO 4217 currencies with decimals](https://baltor.ai/components/iso-4217-currencies-with-decimals-61c6fc70): ISO 4217 currencies with decimals, symbols and default locale: 146 rows with a JSON Schema, a checked loader and tests. Name `currencies.json`, licence MIT, 8 files.
- [Common world currencies with decimal digits and rounding](https://baltor.ai/components/common-world-currencies-with-decimal-digits-and-rounding-7809a3d5): Common world currencies with symbol, native symbol, decimal digits, rounding and plural name: 119 rows with a JSON Schema, a checked loader and tests. Name `Common-Currency.json`, licence CC0-1.0 AND MIT, 8 files.
- [Example international phone number formats by country code](https://baltor.ai/components/example-international-phone-number-formats-by-country-co-82454dcf): Example international phone number formats by country code: 58 rows with a JSON Schema, a checked loader and tests. Name `phone-formats.json`, licence ISC AND MIT, 8 files.
- [parse_int from pydash](https://baltor.ai/components/parse-int-from-pydash-938eab61): parse_int from pydash: Converts the given `value` into an integer of the specified `radix`. Name `parse_int`, licence MIT, 6 files.
- [is_prime from more-itertools](https://baltor.ai/components/is-prime-from-more-itertools-1429ce5f): is_prime from more-itertools: Return ``True`` if *n* is prime and ``False`` otherwise. Name `is_prime`, licence MIT, 6 files.
- [Compare two counted proportions with exact arithmetic and explicit denominators](https://baltor.ai/components/baltor-percentage-comparison): Compare two counted proportions with exact arithmetic and explicit denominators. Name `baltor_percentage_comparison`, licence MIT, 12 files.

Your agent downloads these through Baltor with Pro, $49 a month: https://baltor.ai/get-started
