github.com/jackc/pgx/v5/pgtype.Numeric.Exp (field)

21 uses

	github.com/jackc/pgx/v5/pgtype (current package)
		numeric.go#L62: 	Exp              int32
		numeric.go#L100: 	buf = strconv.AppendInt(buf, int64(n.Exp), 10)
		numeric.go#L149: 	*n = Numeric{Int: num, Exp: exp, Valid: true}
		numeric.go#L193: 	if n.Exp == 0 {
		numeric.go#L199: 	if n.Exp > 0 {
		numeric.go#L201: 		mul.Exp(big10, big.NewInt(int64(n.Exp)), nil)
		numeric.go#L207: 	div.Exp(big10, big.NewInt(int64(-n.Exp)), nil)
		numeric.go#L337: 	exp := int(n.Exp)
		numeric.go#L436: 	return encodeNumericBinary(Numeric{Int: num, Exp: exp, Valid: true}, buf)
		numeric.go#L480: 	if n.Exp < -math.MaxInt16 {
		numeric.go#L481: 		return nil, fmt.Errorf("cannot encode numeric: exponent %d is out of range", n.Exp)
		numeric.go#L495: 	switch n.Exp % 4 {
		numeric.go#L497: 		exp = n.Exp - 1
		numeric.go#L500: 		exp = n.Exp - 2
		numeric.go#L503: 		exp = n.Exp - 3
		numeric.go#L506: 		exp = n.Exp
		numeric.go#L548: 		return nil, fmt.Errorf("cannot encode numeric: exponent %d is out of range", n.Exp)
		numeric.go#L555: 	if n.Exp < 0 {
		numeric.go#L556: 		dscale = int16(-n.Exp)
		numeric.go#L778: 	return scanner.ScanNumeric(Numeric{Int: accum, Exp: exp, Valid: true})
		numeric.go#L880: 	return scanner.ScanNumeric(Numeric{Int: num, Exp: exp, Valid: true})