code: func (q *Quantity) Value() int64 {
  	if q.Amount == nil {
  		return 0
  	}
  	return scaledValue(q.Amount.UnscaledBig(), int(q.Amount.Scale()), 0)
  }
docs: // Value returns the value of q; any fractional part will be lost.