func (p *Price) Cmp(otherPrice *Price) (compIndicator int) {
	// Just use math/big's comparison, they already wrote it
	price1 := new(big.Float).Quo(new(big.Float).SetUint64(p.AmountWant), new(big.Float).SetUint64(p.AmountHave))
	price2 := new(big.Float).Quo(new(big.Float).SetUint64(otherPrice.AmountWant), new(big.Float).SetUint64(otherPrice.AmountHave))
	compIndicator = price1.Cmp(price2)
	return
}
// Cmp compares p and otherPrice and returns:
//
//   -1 if x <  y
//    0 if x == y (incl. -0 == 0, -Inf == -Inf, and +Inf == +Inf)
//   +1 if x >  y
//
Cmp compares p and otherPrice and returns.


// Cmp compares p and otherPrice and returns : // // - 1 if x < y // 0 if x == y ( incl . - 0 == 0 - Inf == - Inf and + Inf == + Inf ) // + 1 if x > y //
func (p *Price) Cmp(otherPrice *Price) (compIndicator int) {
	price1 := new(big.Float).Quo(new(big.Float).SetUint64(p.AmountWant), new(big.Float).SetUint64(p.AmountHave))
	price2 := new(big.Float).Quo(new(big.Float).SetUint64(otherPrice.AmountWant), new(big.Float).SetUint64(otherPrice.AmountHave))
	compIndicator = price1.Cmp(price2)
	return
}
func ( p * Price ) Cmp ( otherPrice * Price ) ( compIndicator int ) { price1 := new ( big . Float ) . Quo ( new ( big . Float ) . SetUint64 ( p . AmountWant ) , new ( big . Float ) . SetUint64 ( p . AmountHave ) ) price2 := new ( big . Float ) . Quo ( new ( big . Float ) . SetUint64 ( otherPrice . AmountWant ) , new ( big . Float ) . SetUint64 ( otherPrice . AmountHave ) ) compIndicator = price1 . Cmp ( price2 ) return }
Cmp compares p and otherPrice and returns.
Cmp compares p and otherPrice and returns .
// Just use math/big's comparison, they already wrote it