func (v *Decimal) Cas(old, new decimal.Decimal) (swapped bool) {
	if old.Cmp(new) < 0 {
		v.value = new
		return true
	}
	return false
}
// Cas executes the compare-and-swap operation for value.
Cas executes the compare-and-swap operation for value.
// Cas executes the compare - and - swap operation for value .
func (v *Decimal) Cas(old, new decimal.Decimal) (swapped bool) {
	if old.Cmp(new) < 0 {
		v.value = new
		return true
	}
	return false
}
func ( v * Decimal ) Cas ( old , new decimal . Decimal ) ( swapped bool ) { if old . Cmp ( new ) < 0 { v . value = new return true } return false }
Cas executes the compare-and-swap operation for value.
Cas executes the compare - and - swap operation for value .