cbring / numerals

A library for working with numerals in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A library for working with numerals in Go

License:MIT License


Languages

Language:Go 100.0%