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