Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 924 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 924 Bytes

Numerals

A library for working with and converting different numeral systems in Unicode.

Supported numerals:

CLI

A CLI is available to format and parse numbers.

Formatting a number using a numeral system:

$ go run github.com/gnirb/numerals/cmd@latest -system=roman 2023
MMXXIII

$ go run github.com/gnirb/numerals/cmd@latest -system=egyptian 2023
𓆼𓆼𓎆𓎆𓏤𓏤𓏤

Parsing a number using a numeral system:

$ go run github.com/gnirb/numerals/cmd@latest -system=roman -parse MMXXIII
2023

$ go run github.com/gnirb/numerals/cmd@latest -system=egyptian -parse 𓆼𓆼𓎆𓎆𓏤𓏤𓏤
2023