decimal

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Zero = decimal.Zero

Zero type alias for basic decimal.Zero

Functions

This section is empty.

Types

type Decimal

type Decimal = decimal.Decimal

Decimal type alias for basic decimal.Decimal

func New

func New(value int64, exp int32) Decimal

New create new decimal with value and exp

func NewFromBigInt

func NewFromBigInt(value *big.Int, exp int32) Decimal

NewFromBigInt create decimal number from big int

func NewFromFloat

func NewFromFloat(val float64) Decimal

NewFromFloat return decimal from float number

func NewFromString

func NewFromString(val string) (Decimal, error)

NewFromString return decimal and error from number in string

Jump to

Keyboard shortcuts

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