// ToUint64Checked attempts to cast the Decimal128 to a Uint64.
// The second return value will be false if there was an overflow or any other loss of precision.
// For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
ToUint64Checked attempts to cast the Decimal128 to a Uint64.
The second return value will be false if there was an overflow or any other loss of precision.
For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
// ToUint64Checked attempts to cast the Decimal128 to a Uint64 . // The second return value will be false if there was an overflow or any other loss of precision . // For example going from Float64 to Int64 will result in anything after the decimal being truncated .
func (t Decimal128) ToUint64Checked() (Uint64, Boolean) {
	var converted Uint64
	converted = Uint64(t.toU64())
	v, err := converted.ToDecimal128().Eq(t)
	return converted, Boolean(err == nil && v)
}
func ( t Decimal128 ) ToUint64Checked ( ) ( Uint64 , Boolean ) { var converted Uint64 converted = Uint64 ( t . toU64 ( ) ) v , err := converted . ToDecimal128 ( ) . Eq ( t ) return converted , Boolean ( err == nil && v ) }
ToUint64Checked attempts to cast the Decimal128 to a Uint64.
ToUint64Checked attempts to cast the Decimal128 to a Uint64 .