mathBig

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MAdd

func MAdd(left, right string, sca, scale int) string

func MCmp

func MCmp(left, right string) bool

left > = right return true left < right false

func MDivString

func MDivString(left, right string, sca, scale int) string

func MMulInt

func MMulInt(left, right, sca, scale int) string

func MMulString

func MMulString(left, right string, sca, scale int) string

func MMulStringInt

func MMulStringInt(left string, right, sca, scale int) string

func MMulStringInt64

func MMulStringInt64(left string, right int64, sca, scale int) string

func MPow

func MPow(a string, floats int, b int, scale int) string

计算字符串数值的n次幂 不支持浮点数计算 浮点数将去掉小数点计算 a string 计算的目标数值字符串 floats int 目标字符串小数部分长度 b int 次幂n scale 要保留的目标有效小数

func MSub

func MSub(left, right string, sca, scale int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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