mathcal

package
v1.2.50 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaymentCNY = "¥"
	PaymentUSD = "$"

	CountNumber = "个"
	CountWeight = "克"

	OrderByTotal = "total"
	OrderByCount = "count"
	OrderByUnit  = "unit"
)

Variables

This section is empty.

Functions

func Ln added in v1.2.49

func Ln(x float64) float64

func LogLog added in v1.2.49

func LogLog(x float64, l1, l2 int) float64

func LoopLog added in v1.2.49

func LoopLog(x float64, l int, lx ...int) float64

Types

type DiscountHdr

type DiscountHdr struct {
	Payment    string // PaymentCNY, PaymentUSD
	TotalPrice []float64
	Count      string // CountNumber, CountWeight
	TotalCount []int
	OrderBy    string // OrderByTotal, OrderByCount, OrderByUnit
	// contains filtered or unexported fields
}

func NewCNYNum

func NewCNYNum(tot []float64, cnt []int) *DiscountHdr

func NewCNYWeight

func NewCNYWeight(tot []float64, cnt []int) *DiscountHdr

func (*DiscountHdr) Cal

func (h *DiscountHdr) Cal() *DiscountHdr

func (*DiscountHdr) Log

func (h *DiscountHdr) Log()

func (*DiscountHdr) Sort

func (h *DiscountHdr) Sort() *DiscountHdr

Jump to

Keyboard shortcuts

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