decimal

package
v0.0.0-...-f0d60b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorOverloadingOptions

func GetOperatorOverloadingOptions() []expr.Option

Types

type ExprEnv

type ExprEnv struct{}

func (ExprEnv) Decimal

func (e ExprEnv) Decimal(val any) decimalType.Decimal

func (ExprEnv) DecimalAdd

func (e ExprEnv) DecimalAdd(a, b decimalType.Decimal) decimalType.Decimal

func (ExprEnv) DecimalDiv

func (e ExprEnv) DecimalDiv(a, b decimalType.Decimal) decimalType.Decimal

func (ExprEnv) DecimalEqual

func (e ExprEnv) DecimalEqual(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalGreater

func (e ExprEnv) DecimalGreater(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalGreaterEq

func (e ExprEnv) DecimalGreaterEq(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalLess

func (e ExprEnv) DecimalLess(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalLessEq

func (e ExprEnv) DecimalLessEq(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalMod

func (e ExprEnv) DecimalMod(a, b decimalType.Decimal) decimalType.Decimal

func (ExprEnv) DecimalMul

func (e ExprEnv) DecimalMul(a, b decimalType.Decimal) decimalType.Decimal

func (ExprEnv) DecimalNotEqual

func (e ExprEnv) DecimalNotEqual(a, b decimalType.Decimal) bool

func (ExprEnv) DecimalPow

func (e ExprEnv) DecimalPow(a, b decimalType.Decimal) decimalType.Decimal

func (ExprEnv) DecimalSub

func (e ExprEnv) DecimalSub(a, b decimalType.Decimal) decimalType.Decimal

type ExprPatch

type ExprPatch struct {
	DecimalVarMap map[string]bool
	// contains filtered or unexported fields
}

func (*ExprPatch) DecimalVar

func (p *ExprPatch) DecimalVar(vars []string)

func (*ExprPatch) Visit

func (p *ExprPatch) Visit(node *ast.Node)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL