zahlenschreiben

package
v0.0.0-...-efc62be Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(dstrings []string) string

Compose erwartet eine Liste von Ziffer-Strings, fügt sie zusammen und baut notwendige Füllwörter ein (z.B. "und", "hundert" etc.).

func DigitStrings

func DigitStrings(d []int) []string

DigitStrings erwartet eine Liste von Ziffern und liefert eine Liste mit den entsprechenden Wörtern zurück.

func Digits

func Digits(n int) []int

Digits erwartet eine Zahl und liefert eine Liste mit den Ziffern dieser Zahl.

Example
fmt.Println(Digits(143))
Output:

[1 4 3]

func IntToString

func IntToString(n int) string

Erwartet eine Zahl und liefert eine menschenlesbare String-Darstellung.

Example
fmt.Println(IntToString(143))
e1 := IntToString(58)
fmt.Println(e1)
fmt.Println(IntToString(7))
Output:

einhundertdreiundvierzig
achtundfünfzig
sieben

Types

This section is empty.

Jump to

Keyboard shortcuts

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