Skip to content

felipernb/go-approximate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

go-approximate

Small Go library to format numbers approximately in a "human readable" way ("7.5K", "280M", etc.)

Based on https://github.com/mahemoff/approximate

Usage

$ go get github.com/felipernb/go-approximate

myfile.go

package main

import (
    "fmt"
    "github.com/felipernb/go-approximate"
)

func main() {
    fmt.Println(approximate.Approximate(949384902)) // 9.5G
}

About

Small Go library to format numbers approximately in a "human readable" way ("7.5K", "280M", etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages