Documentation ¶
Index ¶
- func Abs(x float64) float64
- func Ceil(x float64) float64
- func Float64Add(f1, f2 float64) float64
- func Float64Mul(f1, f2 float64) float64
- func Float64Quo(f1, f2 float64) float64
- func Float64Sub(f1, f2 float64) float64
- func Floor(x float64) float64
- func Max(x, y float64) float64
- func Min(x, y float64) float64
- func Round(x float64) float64
- func RoundPoint(x float64) float64
- type DFloat
- type Decimal
- func (d Decimal) Add(d2 Decimal) Decimal
- func (d Decimal) AddFloat(d2 float64) Decimal
- func (d Decimal) AddInt(d2 int64) Decimal
- func (d Decimal) AddString(d2 string) Decimal
- func (d Decimal) Float64() float64
- func (d Decimal) Float64Point(p int) float64
- func (d Decimal) Float64PointAdaptive(maxP int) float64
- func (d Decimal) Int64() int64
- func (d Decimal) IsInteger(d2 float64) bool
- func (d Decimal) MoneyFloat64() float64
- func (d Decimal) Mul(d2 Decimal) Decimal
- func (d Decimal) MulFloat(d2 float64) Decimal
- func (d Decimal) MulInt(d2 int64) Decimal
- func (d Decimal) MulString(d2 string) Decimal
- func (d Decimal) Quo(d2 Decimal) Decimal
- func (d Decimal) QuoFloat(d2 float64) Decimal
- func (d Decimal) QuoInt(d2 int64) Decimal
- func (d Decimal) QuoString(d2 string) Decimal
- func (d Decimal) String() string
- func (d Decimal) Sub(d2 Decimal) Decimal
- func (d Decimal) SubFloat(d2 float64) Decimal
- func (d Decimal) SubInt(d2 int64) Decimal
- func (d Decimal) SubString(d2 string) Decimal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
func (Decimal) Float64Point ¶ added in v1.0.52
Float64Point 输出float64带小数点
func (Decimal) Float64PointAdaptive ¶ added in v1.0.52
Float64PointAdaptive 输出float64带小数点(自适应)
func (Decimal) MoneyFloat64 ¶ added in v1.0.52
MoneyFloat64 货币 float64
Click to show internal directories.
Click to hide internal directories.