parse

package
v1.0.0-preupgrade Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Uint64Checked

func Uint64Checked(s string) (uint64, error)

Uint64Checked parses a uint64 from a string that may have been serialized from a Daml NUMERIC.

Daml NUMERIC values are decimal strings with arbitrary precision, and may be represented with a trailing decimal point (for example "12345."). In this codebase we only accept integer-valued NUMERICs when converting into uint64.

The parsing is strict: - the value must parse as a rational number - it must be an integer (no fractional component) - it must fit into an unsigned 64-bit integer

Types

This section is empty.

Jump to

Keyboard shortcuts

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