numfmt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LargeNumber

func LargeNumber(n int64) string

LargeNumber formats an int64 into a string representation using K, M, B, T, Q suffixes. It handles negative numbers and rounds to two decimal places.

func USD

func USD(n float64) string

USD formats a float64 into a string representation using $ and two decimal places.

Types

This section is empty.

Jump to

Keyboard shortcuts

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