package decimal256
Import Path
github.com/apache/arrow-go/v18/arrow/decimal256 (on go.dev )
Dependency Relation
imports 7 packages , and imported by 4 packages
Package-Level Type Names (only one)
/* sort by: alphabet | popularity */
type Num (struct)
Methods (total 24 )
( Num) Abs () Num
( Num) Add (rhs Num ) Num
( Num) Array () [4]uint64
( Num) BigInt () *big .Int
( Num) Cmp (other Num ) int
Cmp compares the numbers represented by n and other and returns:
+1 if n > other
0 if n == other
-1 if n < other
( Num) Div (rhs Num ) (res, rem Num )
( Num) FitsInPrecision (prec int32 ) bool
( Num) Greater (other Num ) bool
Greater returns true if the value represented by n is > other
( Num) GreaterEqual (other Num ) bool
GreaterEqual returns true if the value represented by n is >= other
( Num) IncreaseScaleBy (increase int32 ) Num
( Num) Less (other Num ) bool
Less returns true if the value represented by n is < other
( Num) LessEqual (other Num ) bool
LessEqual returns true if the value represented by n is <= other
( Num) LowBits () uint64
( Num) Mul (rhs Num ) Num
( Num) Negate () Num
( Num) Pow (rhs Num ) Num
( Num) ReduceScaleBy (reduce int32 , round bool ) Num
( Num) Rescale (original, newscale int32 ) (out Num , err error )
( Num) Sign () int
( Num) Sub (rhs Num ) Num
( Num) ToBigFloat (scale int32 ) *big .Float
( Num) ToFloat32 (scale int32 ) float32
( Num) ToFloat64 (scale int32 ) float64
( Num) ToString (scale int32 ) string
As Outputs Of (at least 23 )
func FromBigInt (v *big .Int ) (n Num )
func FromDecimal128 (n decimal128 .Num ) Num
func FromFloat32 (v float32 , prec, scale int32 ) (Num , error )
func FromFloat64 (v float64 , prec, scale int32 ) (Num , error )
func FromI64 (v int64 ) Num
func FromString (v string , prec, scale int32 ) (n Num , err error )
func FromU64 (v uint64 ) Num
func GetHalfScaleMultiplier (pow int ) Num
func GetMaxValue (prec int32 ) Num
func GetScaleMultiplier (pow int ) Num
func Max (first Num , rest ...Num ) Num
func Min (first Num , rest ...Num ) Num
func New (x1, x2, x3, x4 uint64 ) Num
func Num.Abs () Num
func Num.Add (rhs Num ) Num
func Num.Div (rhs Num ) (res, rem Num )
func Num.IncreaseScaleBy (increase int32 ) Num
func Num.Mul (rhs Num ) Num
func Num.Negate () Num
func Num.Pow (rhs Num ) Num
func Num.ReduceScaleBy (reduce int32 , round bool ) Num
func Num.Rescale (original, newscale int32 ) (out Num , err error )
func Num.Sub (rhs Num ) Num
As Inputs Of (at least 15 )
func Max (first Num , rest ...Num ) Num
func Max (first Num , rest ...Num ) Num
func Min (first Num , rest ...Num ) Num
func Min (first Num , rest ...Num ) Num
func Num.Add (rhs Num ) Num
func Num.Cmp (other Num ) int
func Num.Div (rhs Num ) (res, rem Num )
func Num.Greater (other Num ) bool
func Num.GreaterEqual (other Num ) bool
func Num.Less (other Num ) bool
func Num.LessEqual (other Num ) bool
func Num.Mul (rhs Num ) Num
func Num.Pow (rhs Num ) Num
func Num.Sub (rhs Num ) Num
func github.com/apache/arrow-go/v18/arrow/scalar.NewDecimal256Scalar (val Num , typ arrow .DataType ) *scalar .Decimal256
Package-Level Functions (total 13)
Package-Level Constants (total 2)
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 .