Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 476 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 476 Bytes

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: منفی بیست و سه صدم