2020-08-20 09:46:58 +00:00
|
|
|
package accounting
|
|
|
|
|
|
|
|
// SetValue sets value of the decimal number.
|
|
|
|
func (m *Decimal) SetValue(v int64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Value = v
|
2020-08-20 09:46:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetPrecision sets precision of the decimal number.
|
|
|
|
func (m *Decimal) SetPrecision(v uint32) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Precision = v
|
2020-08-20 09:46:58 +00:00
|
|
|
}
|