f_round.ihlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· IHLP 代码 · 共 17 行

IHLP
17
字号
{* 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 + =
减小字号Ctrl + -
显示快捷键?