parsedefs

package
v0.0.0-...-4ee4993 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAmount

func FormatAmount(amount float64) string

FormatAmount converts an amount into a brief string representation with at most 3 significant digits

func FormatFixed

func FormatFixed(amount float64) string

FormatFixed converts an amount into a brief string representation with exactly 3 significant digits, and exactly 5 characters.

func FormatPercent

func FormatPercent(ratio float64) string

FormatFixed turns a number between 0 and 1 into a 5-character percentage representation with exactly 3 significant digits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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