big

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package big provides testing utility methods for the "math/big" library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64MulPow10 added in v0.4.0

func Int64MulPow10(
	val int64,
	exponent uint64,
) (
	result *big.Int,
)

Int64MulPow10 returns the result of `val * 10^exponent`, in *big.Int.

func MustFirst

func MustFirst[T *big.Int | *big.Rat](n T, success bool) T

MustFirst is used for returning the first value of the SetString method on a `*big.Int` or `*big.Rat`. This will panic if the conversion fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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