numeric

package
v0.0.0-...-b99dcaa Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CeilToFixedDecimal

func CeilToFixedDecimal(num float64, n int) string

func FloorToFixedDecimal

func FloorToFixedDecimal(num float64, n int) string

func ToFixedDecimal

func ToFixedDecimal(num float64, n int) string

*

  • 四舍五入
  • @param n 要保留的小数点位数

func ToFloat64

func ToFloat64(v interface{}) float64

func ToInt

func ToInt(v interface{}) int

func ToInt64

func ToInt64(v interface{}) (int64, error)

func ToString

func ToString(v interface{}) string

func ToUint64

func ToUint64(v interface{}) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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