numconv

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 4 Imported by: 0

README

numconv

A utility library for golang number.

Methods
  • ChineseToArabic Convert a Chinese number to Arabic number.
License

MIT License

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNumber = errors.New("Number is invalid")
)

Functions

func ChineseToArabic

func ChineseToArabic(cn string) (int64, error)

ChineseToArabic convert Chinese numbers to Arabic numbers. It only support integers now.

Types

This section is empty.

Jump to

Keyboard shortcuts

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