humanize

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monetaryf added in v1.6.4

func Monetaryf(value float64, precision int) string

Monetaryf produces a string from of the given number give minimum precision in base 10 with thousands separators after every three orders of magnitude using thousands and decimal spearator according to LC_MONETARY; defaulting "en".

e.g. Monetaryf(834142.3256, 2) -> "834,142.3256"

func Numericf added in v1.6.4

func Numericf(value float64, precision int) string

Numericf produces a string from of the given number with give fixed precision in base 10 with thousands separators after every three orders of magnitude using a thousands and decimal spearator according to LC_NUMERIC; defaulting "en".

e.g. Numericf(834142.32, 2) -> "834,142.32"

Types

This section is empty.

Jump to

Keyboard shortcuts

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