package strconv

import "github.com/tdewolff/parse/strconv"

Index

Functions

func AppendFloat

func AppendFloat(b []byte, f float64, prec int) ([]byte, bool)

func LenInt

func LenInt(i int64) int

func ParseFloat

func ParseFloat(b []byte) (float64, int)

Float parses a byte-slice and returns the float it represents. If an invalid character is encountered, it will stop there.

func ParseInt

func ParseInt(b []byte) (int64, int)

Int parses a byte-slice and returns the integer it represents. If an invalid character is encountered, it will stop there.

Source Files

float.go int.go

Version
v2.3.1+incompatible
Published
Nov 12, 2017
Platform
js/wasm
Imports
1 packages
Last checked
11 minutes ago

Tools for package owners.