fastfloat

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 4 Imported by: 49 modules, 99 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v1.6.0

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

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 added in v1.6.0

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 added in v1.1.0

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 added in v1.6.0

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 added in v1.3.0

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL