convert

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaximumRomanNumber = 3999
)

Functions

func ToCharacters

func ToCharacters[T maths.Integers](number T, base string) (letters string)

func ToLetters

func ToLetters[T maths.Integers](number T) (letters string)

func ToRoman

func ToRoman(number int) (numerals string)

Types

type DigitValue

type DigitValue struct {
	Value int
	Digit string
}

type DigitValues

type DigitValues []DigitValue

func ListRomanNumerals

func ListRomanNumerals() (numerals DigitValues)

func (DigitValues) Sort

func (r DigitValues) Sort() (sorted DigitValues)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL