fastjson: github.com/valyala/fastjson/fastfloat Index | Files

package fastfloat

import "github.com/valyala/fastjson/fastfloat"

Index

Package Files

parse.go

func Parse Uses

func Parse(s string) (float64, error)

Parse parses floating-point number s.

It is equivalent to strconv.ParseFloat(s, 64), but is faster.

See also ParseBestEffort.

func ParseBestEffort Uses

func ParseBestEffort(s string) float64

ParseBestEffort parses floating-point number s.

It is equivalent to strconv.ParseFloat(s, 64), but is faster.

0 is returned if the number cannot be parsed. See also Parse, which returns parse error if the number cannot be parsed.

func ParseInt64 Uses

func ParseInt64(s string) (int64, error)

ParseInt64 parses int64 number s.

It is equivalent to strconv.ParseInt(s, 10, 64), but is faster.

See also ParseInt64BestEffort.

func ParseInt64BestEffort Uses

func ParseInt64BestEffort(s string) int64

ParseInt64BestEffort parses int64 number s.

It is equivalent to strconv.ParseInt(s, 10, 64), but is faster.

0 is returned if the number cannot be parsed. See also ParseInt64, which returns parse error if the number cannot be parsed.

func ParseUint64 Uses

func ParseUint64(s string) (uint64, error)

ParseUint64 parses uint64 from s.

It is equivalent to strconv.ParseUint(s, 10, 64), but is faster.

See also ParseUint64BestEffort.

func ParseUint64BestEffort Uses

func ParseUint64BestEffort(s string) uint64

ParseUint64BestEffort parses uint64 number s.

It is equivalent to strconv.ParseUint(s, 10, 64), but is faster.

0 is returned if the number cannot be parsed. See also ParseUint64, which returns parse error if the number cannot be parsed.

Package fastfloat imports 4 packages (graph) and is imported by 12 packages. Updated 2020-11-30. Refresh now. Tools for package owners.