Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFloat ¶
AppendFloat appends a float to `b` with precision `prec`. It returns the new slice and whether successful or not. Precision is the number of decimals to display, thus prec + 1 == number of significant digits.
func AppendPrice ¶
AppendPrice will append an int64 formatted as a price, where the int64 is the price in cents. It does not display whether a price is negative or not.
func ParseFloat ¶
ParseFloat parses a byte-slice and returns the float it represents. If an invalid character is encountered, it will stop there.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.