add buy-sell-ratio

This commit is contained in:
c9s 2020-10-03 13:44:38 +08:00
parent a8c972dfb1
commit 9dd8b026e6

View File

@ -23,6 +23,10 @@ func (v Value) Mul(v2 Value) Value {
return NewFromFloat(v.Float64() * v2.Float64())
}
func (v Value) MulFloat64(v2 float64) Value {
return NewFromFloat(v.Float64() * v2)
}
func (v Value) Div(v2 Value) Value {
return NewFromFloat(v.Float64() / v2.Float64())
}