github.com/mithrandie/csvq@v1.18.1/lib/constant/definition.go (about)

     1  package constant
     2  
     3  import (
     4  	"math"
     5  )
     6  
     7  var Definition = map[string]map[string]interface{}{
     8  	"MATH": {
     9  		"E":       math.E,
    10  		"PI":      math.Pi,
    11  		"PHI":     math.Phi,
    12  		"SQRT2":   math.Sqrt2,
    13  		"SQRTE":   math.SqrtE,
    14  		"SQRTPI":  math.SqrtPi,
    15  		"SQRTPHI": math.SqrtPhi,
    16  		"LN2":     math.Ln2,
    17  		"LOG2E":   math.Log2E,
    18  		"LN10":    math.Ln10,
    19  		"LOG10E":  math.Log10E,
    20  	},
    21  	"FLOAT": {
    22  		"MAX":              math.MaxFloat64,
    23  		"SMALLEST_NONZERO": math.SmallestNonzeroFloat64,
    24  	},
    25  	"INTEGER": {
    26  		"MAX": int64(math.MaxInt64),
    27  		"MIN": int64(math.MinInt64),
    28  	},
    29  }