kubernetes/vendor/golang.org/x/text/internal/number/decimal.go

type RoundingMode

const ToNearestEven

const ToNearestZero

const ToNearestAway

const ToPositiveInf

const ToNegativeInf

const ToZero

const AwayFromZero

const numModes

const maxIntDigits

type Decimal

type digits

type Digits

func (d *Digits) NumFracDigits() int {}

// normalize returns a new Decimal with leading and trailing zeros removed.
func (d *Decimal) normalize() (n Decimal) {}

func (d *Decimal) clear() {}

func (x *Decimal) String() string {}

func appendDigits(buf []byte, digits []byte) []byte {}

// appendZeros appends n 0 digits to buf and returns buf.
func appendZeros(buf []byte, n int) []byte {}

func (d *digits) round(mode RoundingMode, n int) {}

// roundFloat rounds a floating point number.
func (r RoundingMode) roundFloat(x float64) float64 {}

func (x *digits) roundUp(n int) {}

func (x *digits) roundDown(n int) {}

// trim cuts off any trailing zeros from x's mantissa;
// they are meaningless for the value of x.
func trim(x *digits) {}

type Converter

const signed

const unsigned

// Convert converts the given number to the decimal representation using the
// supplied RoundingContext.
func (d *Decimal) Convert(r RoundingContext, number interface{}

// ConvertInt converts an integer to decimals.
func (d *Decimal) ConvertInt(r RoundingContext, signed bool, x uint64) {}

// ConvertFloat converts a floating point number to decimals.
func (d *Decimal) ConvertFloat(r RoundingContext, x float64, size int) {}

func (d *Decimal) fillIntDigits(x uint64) {}

var scales

func init() {}