Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrencyString ¶
CurrencyString formats as following: 10.00 -> $10, 10.50 -> $10.50, 10.55 -> $10.55, 10.556 -> $10.55
func CustomDecimalString ¶
CustomDecimalString formats value given 2 precision as following: 10.00 -> 10, 10.50 -> 10.50, 10.55 -> 10.55, 10.556 -> 10.55 If showThousandsSeparator is true, it will add thousands separator as following: 1000000.00 -> 1,000,000
func DecimalString ¶
DecimalString formats as following: 10.00 -> 10, 10.50 -> 10.50, 10.55 -> 10.55, 10.556 -> 10.55
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float | ~string }
Click to show internal directories.
Click to hide internal directories.