package
Version:
v2.6.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Ceil 向上取整,并保留 n 位小数
@param f float64 待处理的浮点数
@param n ...int 可选的小数位数,默认保留 0 位小数
@return @1 float64 向上取整后的结果
Floor 向下取整,并保留 n 位小数
@param f float64 待处理的浮点数
@param n ...int 可选的小数位数,默认保留 0 位小数
@return @1 float64 向下取整后的结果
Round 四舍五入,并保留 n 位小数
采用“半数远离零”规则,例如 Round(-2.5) 返回 -3
@param f float64 待处理的浮点数
@param n ...int 可选的小数位数,默认保留 0 位小数
@return @1 float64 四舍五入后的结果
Source Files
¶
Click to show internal directories.
Click to hide internal directories.