gtbox_decimal

package
v0.1.94 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package gtbox_decimal en: Decimal ToolBox, zh-cn: Decimal高精度运算常用工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigFloat2Decimal added in v0.1.78

func BigFloat2Decimal(bigFloatVal *big.Float) decimal.Decimal

BigFloat2Decimal en: big.Float covert to decimal, zh-cn: big.Float 转 decimal

func Decimal2BigFloat

func Decimal2BigFloat(decimalVal decimal.Decimal) *big.Float

Decimal2BigFloat en: decimal covert to big.Float, zh-cn: decimal 转 big.Float

func DecimalToFloat64

func DecimalToFloat64(decimalVal decimal.Decimal) float64

DecimalToFloat64 en: decimal covert to Float64, zh-cn: decimal 转 Float64

func Float64ToDecimal

func Float64ToDecimal(float64Val float64) decimal.Decimal

Float64ToDecimal en: Float64 covert to decimal, zh-cn: Float64 转 decimal

Types

This section is empty.

Jump to

Keyboard shortcuts

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