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