MC-Basic:ROUND/zh-hans

From SoftMC-Wiki
< MC-Basic:ROUND
Revision as of 07:32, 27 April 2017 by Chi (talk | contribs)
Jump to: navigation, search
语言: [[::MC-Basic:ROUND|English]]  • [[::MC-Basic:ROUND/zh-hans|中文(简体)‎]]

缩写

格式

Round(<expression>)

适用版本

所有版本

描述

将参数舍入到最接近的整数,以便随机抽样中的累积误差不超过0.5。例如:

值          舍入到最近

5.5                   6.0
4.5                   4.0
3.5                   4.0
2.5                   2.0
1.5                   2.0

|类型= Double

|取值范围= ± MaxDouble

|单位=


|默认值=


|作用域= 配置器, 任务或终端

|使用限制= 只读

|示例= ?Round(4.5)

Var1 = Round(Var2)

|参见=