<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlRound</id>
	<title>LlRound - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlRound"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlRound&amp;action=history"/>
	<updated>2026-06-01T06:21:15Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlRound&amp;diff=642&amp;oldid=prev</id>
		<title>Mkx：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llRound( float val ); |参数= 参数：• float…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlRound&amp;diff=642&amp;oldid=prev"/>
		<updated>2020-08-18T09:07:33Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llRound( float val ); |参数= 参数：• float…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: integer llRound( float val );&lt;br /&gt;
|参数= 参数：• float val  - 任何有效的浮点值&lt;br /&gt;
|返回值= 返回值：返回val最接近的整数。&lt;br /&gt;
&lt;br /&gt;
如果十分位的绝对值小于或等于4，则val四舍五入;否则，val将四舍五入到正无穷。&lt;br /&gt;
&lt;br /&gt;
|注意事项=如果算术结果超出了有效整数的范围(-2147483648到2147483647包括在内)，则返回值为-2147483648 (0x80000000)。&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
示例1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
   state_entry()&lt;br /&gt;
   {  &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of -4.9 is: &amp;quot;+(string)llRound(-4.9) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of -4.9 is: -5&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of -4.1 is: &amp;quot;+(string)llRound(-4.1) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of -4.1 is: -4&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of 4.5 is: &amp;quot;+(string)llRound(4.5) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of 4.5 is: 5&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of 4.9 is: &amp;quot;+(string)llRound(4.9) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of 4.9 is: 5&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of 4.1 is: &amp;quot;+(string)llRound(4.1) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of 4.1 is: 4&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
       llSay(0,  &amp;quot;The rounded value of -4.5 is: &amp;quot;+(string)llRound(-4.5) );&lt;br /&gt;
       //Returns &amp;quot;The rounded value of -4.5 is: -4&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llCeil]] - 将浮点数四舍五入为正无穷大的整数&lt;br /&gt;
&lt;br /&gt;
[[llFloor]] - 将浮点数舍入一个向负无穷逼近的整数&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mkx</name></author>
		
	</entry>
</feed>