// ToDecimal128 attempts to cast the Boolean to a Decimal128.
// The result is not checked for an overflow.
// Use the ToDecimal128Checked version of this method if you need to check for
// an overflow.
ToDecimal128 attempts to cast the Boolean to a Decimal128.
The result is not checked for an overflow.
Use the ToDecimal128Checked version of this method if you need to check for
an overflow.
// ToDecimal128 attempts to cast the Boolean to a Decimal128 . // The result is not checked for an overflow . // Use the ToDecimal128Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToDecimal128() Decimal128 {
	if t {
		return NewDecimal128FromU64(1)
	}
	return NewDecimal128FromU64(0)
}
func ( t Boolean ) ToDecimal128 ( ) Decimal128 { if t { return NewDecimal128FromU64 ( 1 ) } return NewDecimal128FromU64 ( 0 ) }
ToDecimal128 attempts to cast the Boolean to a Decimal128.
ToDecimal128 attempts to cast the Boolean to a Decimal128 .