Baltor Get started

Corner cases

Numbers, currencies and locales

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

9 shown here, each at the exact version the library release of October 9, 2026 serves.

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.

Test packs and checks

  1. Number formatting by locale

    localeFormats.json

    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.

    Rows
    8
    Data file
    data/localeFormats.json

    Code moduleMIT8 files, 12.8 KBreads files, runs commands

  2. Locales with their decimal and group separators

    locales.json

    Locales with name, country, language and number decimal/group separators: 358 rows with a JSON Schema, a checked loader and tests.

    Rows
    358
    Data file
    data/locales.json

    Code moduleMIT8 files, 70.5 KBreads files, runs commands

  3. Currency display format by locale

    currency-format.v2.json

    Currency display format by locale: symbol, decimal and group separators, precision and pattern: 358 rows with a JSON Schema, a checked loader and tests.

    Rows
    358
    Data file
    data/currency-format.v2.json

    Code moduleMIT8 files, 68.9 KBreads files, runs commands

  4. ISO 4217 currencies with decimals

    currencies.json

    ISO 4217 currencies with decimals, symbols and default locale: 146 rows with a JSON Schema, a checked loader and tests.

    Rows
    146
    Data file
    data/currencies.json

    Code moduleMIT8 files, 36.2 KBreads files, runs commands

  5. Common world currencies with decimal digits and rounding

    Common-Currency.json

    Common world currencies with symbol, native symbol, decimal digits, rounding and plural name: 119 rows with a JSON Schema, a checked loader and tests.

    Rows
    119
    Data file
    data/Common-Currency.json

    Code moduleCC0-1.0 AND MIT8 files, 38.4 KBreads files, runs commands

  6. Example international phone number formats by country code

    phone-formats.json

    Example international phone number formats by country code: 58 rows with a JSON Schema, a checked loader and tests.

    Rows
    58
    Data file
    data/phone-formats.json

    Code moduleISC AND MIT8 files, 11.7 KBreads files, runs commands

  7. parse_int from pydash

    parse_int

    parse_int from pydash: Converts the given `value` into an integer of the specified `radix`.

    Function
    parse_int
    Project
    pydash

    Code moduleMIT6 files, 8.1 KBruns commands

  8. is_prime from more-itertools

    is_prime

    is_prime from more-itertools: Return ``True`` if *n* is prime and ``False`` otherwise.

    Function
    is_prime
    Project
    more-itertools

    Code moduleMIT6 files, 7.6 KBruns commands

  9. Compare two counted proportions with exact arithmetic and explicit denominators

    baltor_percentage_comparison

    Compare two counted proportions with exact arithmetic and explicit denominators.

    Files
    SKILL.md
    Placed for
    OpenCode

    SkillMIT12 files, 33.3 KBreads files, runs commands

Give your agent these components

Your harness downloads them through Baltor with Pro, $49 a month. Cancel any time from your account page.

Get started

More from Corner cases