code: func (d *MyDecimal) FromInt(val int64) *MyDecimal {
  	var uVal uint64
  	if val < 0 {
  		d.negative = true
  		uVal = uint64(-val)
  	} else {
  		uVal = uint64(val)
  	}
  	return d.FromUint(uVal)
  }
docs: // FromInt sets the decimal value from int64.