package strconv
import "github.com/tdewolff/parse/v2/strconv"
Index ¶
- func AppendFloat(b []byte, f float64, prec int) ([]byte, bool)
- func AppendPrice(b []byte, price int64, dec bool, milSeparator byte, decSeparator byte) []byte
- func LenInt(i int64) int
- func ParseFloat(b []byte) (float64, int)
- func ParseInt(b []byte) (int64, int)
Functions ¶
func AppendFloat ¶
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 LenInt ¶
func ParseFloat ¶
Float parses a byte-slice and returns the float it represents. If an invalid character is encountered, it will stop there.
func ParseInt ¶
Int parses a byte-slice and returns the integer it represents. If an invalid character is encountered, it will stop there.
Source Files ¶
- Version
- v2.4.1
- Published
- Dec 3, 2019
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.