package decimal
Import Path
github.com/apache/arrow-go/v18/arrow/decimal (on go.dev )
Dependency Relation
imports 11 packages , and imported by 4 packages
Package-Level Type Names (total 7)
/* sort by: alphabet | popularity */
type Decimal32 int32 (basic type)
Methods (total 17 )
( Decimal32) Abs () Decimal32
( Decimal32) Add (rhs Decimal32 ) Decimal32
( Decimal32) Cmp (other Decimal32 ) int
( Decimal32) Div (rhs Decimal32 ) (res, rem Decimal32 )
( Decimal32) FitsInPrecision (prec int32 ) bool
( Decimal32) IncreaseScaleBy (increase int32 ) Decimal32
( Decimal32) Mul (rhs Decimal32 ) Decimal32
( Decimal32) Negate () Decimal32
( Decimal32) Pow (rhs Decimal32 ) Decimal32
( Decimal32) ReduceScaleBy (reduce int32 , round bool ) Decimal32
( Decimal32) Rescale (originalScale, newScale int32 ) (out Decimal32 , err error )
( Decimal32) Sign () int
( Decimal32) Sub (rhs Decimal32 ) Decimal32
( Decimal32) ToBigFloat (scale int32 ) *big .Float
( Decimal32) ToFloat32 (scale int32 ) float32
( Decimal32) ToFloat64 (scale int32 ) float64
( Decimal32) ToString (scale int32 ) string
Implements (at least one exported )
Decimal32 : Num [Decimal32 ]
As Outputs Of (at least 12 )
func Decimal32FromFloat [F](v F, prec, scale int32 ) (Decimal32 , error )
func Decimal32FromString (v string , prec, scale int32 ) (n Decimal32 , err error )
func Decimal32.Abs () Decimal32
func Decimal32.Add (rhs Decimal32 ) Decimal32
func Decimal32.Div (rhs Decimal32 ) (res, rem Decimal32 )
func Decimal32.IncreaseScaleBy (increase int32 ) Decimal32
func Decimal32.Mul (rhs Decimal32 ) Decimal32
func Decimal32.Negate () Decimal32
func Decimal32.Pow (rhs Decimal32 ) Decimal32
func Decimal32.ReduceScaleBy (reduce int32 , round bool ) Decimal32
func Decimal32.Rescale (originalScale, newScale int32 ) (out Decimal32 , err error )
func Decimal32.Sub (rhs Decimal32 ) Decimal32
As Inputs Of (at least 7 )
func Decimal32.Add (rhs Decimal32 ) Decimal32
func Decimal32.Cmp (other Decimal32 ) int
func Decimal32.Div (rhs Decimal32 ) (res, rem Decimal32 )
func Decimal32.Mul (rhs Decimal32 ) Decimal32
func Decimal32.Pow (rhs Decimal32 ) Decimal32
func Decimal32.Sub (rhs Decimal32 ) Decimal32
func github.com/apache/arrow-go/v18/parquet/variant.(*Builder ).AppendDecimal4 (scale uint8 , v Decimal32 ) error
type Decimal64 int64 (basic type)
Methods (total 17 )
( Decimal64) Abs () Decimal64
( Decimal64) Add (rhs Decimal64 ) Decimal64
( Decimal64) Cmp (other Decimal64 ) int
( Decimal64) Div (rhs Decimal64 ) (res, rem Decimal64 )
( Decimal64) FitsInPrecision (prec int32 ) bool
( Decimal64) IncreaseScaleBy (increase int32 ) Decimal64
( Decimal64) Mul (rhs Decimal64 ) Decimal64
( Decimal64) Negate () Decimal64
( Decimal64) Pow (rhs Decimal64 ) Decimal64
( Decimal64) ReduceScaleBy (reduce int32 , round bool ) Decimal64
( Decimal64) Rescale (originalScale, newScale int32 ) (out Decimal64 , err error )
( Decimal64) Sign () int
( Decimal64) Sub (rhs Decimal64 ) Decimal64
( Decimal64) ToBigFloat (scale int32 ) *big .Float
( Decimal64) ToFloat32 (scale int32 ) float32
( Decimal64) ToFloat64 (scale int32 ) float64
( Decimal64) ToString (scale int32 ) string
Implements (at least one exported )
Decimal64 : Num [Decimal64 ]
As Outputs Of (at least 12 )
func Decimal64FromFloat [F](v F, prec, scale int32 ) (Decimal64 , error )
func Decimal64FromString (v string , prec, scale int32 ) (n Decimal64 , err error )
func Decimal64.Abs () Decimal64
func Decimal64.Add (rhs Decimal64 ) Decimal64
func Decimal64.Div (rhs Decimal64 ) (res, rem Decimal64 )
func Decimal64.IncreaseScaleBy (increase int32 ) Decimal64
func Decimal64.Mul (rhs Decimal64 ) Decimal64
func Decimal64.Negate () Decimal64
func Decimal64.Pow (rhs Decimal64 ) Decimal64
func Decimal64.ReduceScaleBy (reduce int32 , round bool ) Decimal64
func Decimal64.Rescale (originalScale, newScale int32 ) (out Decimal64 , err error )
func Decimal64.Sub (rhs Decimal64 ) Decimal64
As Inputs Of (at least 7 )
func Decimal64.Add (rhs Decimal64 ) Decimal64
func Decimal64.Cmp (other Decimal64 ) int
func Decimal64.Div (rhs Decimal64 ) (res, rem Decimal64 )
func Decimal64.Mul (rhs Decimal64 ) Decimal64
func Decimal64.Pow (rhs Decimal64 ) Decimal64
func Decimal64.Sub (rhs Decimal64 ) Decimal64
func github.com/apache/arrow-go/v18/parquet/variant.(*Builder ).AppendDecimal8 (scale uint8 , v Decimal64 ) error
Package-Level Functions (total 10)
Package-Level Variables (total 4)
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .