Documentation ¶
Index ¶
- type Decimal1
- type Decimal11
- type Decimal2
- type Decimal3
- func (x *Decimal3) Add(v Decimal3) *Decimal3
- func (x *Decimal3) Compose(form byte, negative bool, mant []byte, exponent int32) error
- func (x *Decimal3) Decompose(buf []byte) (form byte, negative bool, mant []byte, exponent int32)
- func (x *Decimal3) Div(v Decimal3, mode RoundingMode) *Decimal3
- func (x *Decimal3) DivInt(v int, mode RoundingMode) *Decimal3
- func (x *Decimal3) Float() float64
- func (x *Decimal3) Mul(v Decimal3) *Decimal3
- func (x *Decimal3) Scan(raw interface{}) error
- func (x Decimal3) String() string
- func (x *Decimal3) Sub(v Decimal3) *Decimal3
- func (x Decimal3) Value() (driver.Value, error)
- type RoundingMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decimal1 ¶
type Decimal1 struct { Int uint64 // contains filtered or unexported fields }
放弃,省空间,但计算时间浪费,来回不停转字符串
type Decimal3 ¶
type Decimal3 struct {
// contains filtered or unexported fields
}
func New3FromStr ¶
Click to show internal directories.
Click to hide internal directories.