NumberToPersianWords

package module
v0.0.0-...-7caf095 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 1 Imported by: 0

README

NumberToPersianWords

Turn numbers to Persian words.

Install
go get github.com/Navid2zp/NumberToPersianWords
Usage
import (
	"fmt"
	"github.com/Navid2zp/NumberToPersianWords"
)

func main() {
    s := NumberToPersianWords.ParseInt(9223372036854775807)
    fmt.Println(s)
}

Output:

نه تریلیون و دویست و بیست و سه بیلیارد و سیصد و هفتاد و دو بیلیون و سی و شش میلیارد و هشتصد و پنجاه و چهار میلیون و هفتصد و هفتاد و پنج هزار و هشتصد و هفت

Limit

The biggest number that this package supports is 9223372036854775807 which is the limit for an int. You can go bigger if you rewrite the calculations with math/big. (Package big)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInt

func ParseInt(number int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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