digits

package
v0.0.0-...-d51f9a1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestDigit

func RestDigit(x int, min, max int) (rest, digit int)

Types

type Digiter

type Digiter struct {
	// contains filtered or unexported fields
}

func NewDigiter

func NewDigiter(min, max int) *Digiter

func (*Digiter) Base

func (d *Digiter) Base() int

func (*Digiter) DigitsToInt

func (d *Digiter) DigitsToInt(digits []int, rest int) (int, error)

func (*Digiter) IntToDigits

func (d *Digiter) IntToDigits(v int, ds []int) (rest int)

dl - digit interval

func (*Digiter) IntToDigitsN

func (d *Digiter) IntToDigitsN(v int, n int) (ds []int, rest int)

func (*Digiter) RestDigit

func (d *Digiter) RestDigit(x int) (rest, digit int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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