Skip to content

AliiAhmadi/num2text

Repository files navigation

num2text

converts numbers to persian text.

Usage

Library

package main

import (
	"fmt"

	"github.com/AliiAhmadi/num2text"
)

func main() {
	number := "123"
	r, err := num2text.Convert(number)
	if err != nil {
		panic(err)
	}

	fmt.Println(r) // صد و بیست و سه
}

CLI

Usage of num2text:
  -number string
        number you want to convert (default "0")
num2text -number=-.23
// Result: منفی بیست و سه صدم

Releases

No releases published

Packages

No packages published

Languages