Documentation
¶
Overview ¶
Package to operate on 64-bit decimal fixed point
Package to operate on 64-bit decimal fixed point
Index ¶
- func DivFull(hi, lo, b UDec64) (UDec64, UDec64)
- func ParseUIntDec(s string, bits int) (uint64, error)
- func ParseUIntDecBytes(s []byte, bits int) (uint64, error)
- type LocFmt
- type UDec64
- func Float64ToUDec64(a float64, precision uint) (UDec64, error)
- func Float64ToUDec64R(a float64, precision uint, rounding bool) (UDec64, error)
- func LocaleParseUDec64(lang, str string, precision uint, rounding bool) (UDec64, error)
- func LocaleParseUDec64Bytes(lang string, strInput []byte, precision uint, rounding bool) (UDec64, error)
- func ParseUDec64(str string, precision uint, rounding bool) (UDec64, error)
- func ParseUDec64Bytes(str []byte, precision uint, rounding bool) (UDec64, error)
- func (a UDec64) Convert(srcPrec, destPrec uint, rounding bool) UDec64
- func (a UDec64) Div(b UDec64, precision uint) UDec64
- func (a UDec64) Format(precision uint, trimZeroes bool) string
- func (a UDec64) FormatBytes(precision uint, trimZeroes bool) []byte
- func (a UDec64) FormatNew(precision, displayPrecision uint, trimZeroes bool) string
- func (a UDec64) FormatNewBytes(precision, displayPrecision uint, trimZeroes bool) []byte
- func (a UDec64) LocaleFormat(lang string, precision uint, trimZeroes, noSep1000 bool) string
- func (a UDec64) LocaleFormatBytes(lang string, precision uint, trimZeroes, noSep1000 bool) []byte
- func (a UDec64) LocaleFormatNew(lang string, precision, displayPrecision uint, trimZeroes, noSep1000 bool) string
- func (a UDec64) LocaleFormatNewBytes(lang string, precision, displayPrecision uint, trimZeroes, noSep1000 bool) []byte
- func (a UDec64) Mul(b UDec64, precision uint, rounding bool) UDec64
- func (a UDec64) MulFull(b UDec64) (UDec64, UDec64)
- func (a UDec64) ToFloat64(precision uint) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UDec64 ¶
type UDec64 uint64
func Float64ToUDec64 ¶
convert float64 to UDec128
func Float64ToUDec64R ¶
convert float64 to UDec128
func LocaleParseUDec64 ¶
parse decimal fixed point from string and return value and error (nil if no error)
func LocaleParseUDec64Bytes ¶
func LocaleParseUDec64Bytes(lang string, strInput []byte, precision uint, rounding bool) (UDec64, error)
parse decimal fixed point from string and return value and error (nil if no error)
func ParseUDec64 ¶
parse number from string
func ParseUDec64Bytes ¶
parse number from bytes
func (UDec64) FormatBytes ¶
format number to bytes
func (UDec64) FormatNewBytes ¶
new format routine with additional displayPrecision argument. Format to bytes
func (UDec64) LocaleFormat ¶
func (UDec64) LocaleFormatBytes ¶
func (UDec64) LocaleFormatNew ¶
func (a UDec64) LocaleFormatNew(lang string, precision, displayPrecision uint, trimZeroes, noSep1000 bool) string
format 64-bit decimal fixed point including locale
Click to show internal directories.
Click to hide internal directories.