package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Aug 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func MAdd(left, right string, sca, scale int) string
-
func MCmp(left, right string) bool
-
func MDivString(left, right string, sca, scale int) string
-
func MMulInt(left, right, sca, scale int) string
-
func MMulString(left, right string, sca, scale int) string
-
func MMulStringInt(left string, right, sca, scale int) string
-
func MMulStringInt64(left string, right int64, sca, scale int) string
-
func MPow(a string, floats int, b int, scale int) string
-
func MSub(left, right string, sca, scale int) string
left > = right return true
left < right false
func MMulInt(left, right, sca, scale int) string
计算字符串数值的n次幂
不支持浮点数计算 浮点数将去掉小数点计算
a string 计算的目标数值字符串
floats int 目标字符串小数部分长度
b int 次幂n
scale 要保留的目标有效小数
Source Files
¶
Click to show internal directories.
Click to hide internal directories.