📄 f_round.ihlp
字号:
{* 30nov2004}{...}
{phang}
{cmd:round(}{it:x}{cmd:)} returns {it:x} rounded to the nearest
whole number. {cmd:round(}{it:x}{cmd:)} = {cmd:round(}{it:x}{cmd:,1)}.
{cmd:round(}{it:x}{cmd:)} returns {it:x} (not "{cmd:.}") if {it:x}
is missing, meaning {cmd:round(.a)} = {cmd:.a}.
Also see {help int():{bf:int(}{it:x}{bf:)}},
{help ceil():{bf:ceil(}{it:x}{bf:)}},
{help floor():{bf:floor(}{it:x}{bf:)}}.{p_end}
{phang}
{cmd:round(}{it:x}{cmd:,}{it:y}{cmd:)} returns {it:x} rounded
to units of {it:y}. {cmd:round(}{it:x}{cmd:,}{it:y}{cmd:)} returns
{it:x} (not "{cmd:.}") if {it:x} is missing, meaning
{cmd:round(.a,}{it:y}{cmd:)} = {cmd:.a} if {it:y} is not missing. If
{it:y} is missing, "{cmd:.}" is returned.{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -