strconv

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeParseUint

func SafeParseUint(s string) uint64

SafeParseUint parses a string numeric value into a uint64.

For integer values, it accepts the formats defined in `math/big.Int.SetString()`.

For float values, it accepts the formats defined in `math/big.Float.Parse()`. The value is parsed with a 64 bits precision and is rounded down (`math/big.ToZero`).

Returns zero if it cannot parse the value (invalid/malformed, negative or overflows uint64).

Types

This section is empty.

Jump to

Keyboard shortcuts

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