HGCommon

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

HGCommon project HGCommon.go

HGCommon document

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatToString

func FloatToString(num float64, precision int) string

一般的浮点型转字符串都会有出现.0的情况,比如 18-》18.000000。不美观,鸡肋 本函数可以根据精度将无用的.0去掉。本函数不支持有效位数的设置 precision 有效精度

Types

This section is empty.

Jump to

Keyboard shortcuts

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