Help us shape the future of Go! Take the 2026 Go Developer Survey

exmath

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package exmath 对 math 的扩展

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Round

func Round(val float64, precision int) float64

Round 四舍五入,ROUND_HALF_UP 模式实现 返回将 val 根据指定精度 precision(十进制小数点后数字的数目)进行四舍五入的结果。precision 也可以是负数或零。

Types

This section is empty.

Jump to

Keyboard shortcuts

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