number

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(num int64, retain int) float64

将 int64 恢复成精确 retain 位的正常 float64

func UnwrapToInt64

func UnwrapToInt64(num int64, retain int) int64

精准 retain 位的 int64

func Wrap

func Wrap(num float64, retain int) int64

将 float64 转成精确 retain 位的 int64

func WrapToFloat64

func WrapToFloat64(num float64, retain int) float64

精准 retain 位的 float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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