<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AFloor</id>
	<title>模板:Floor - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AFloor"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Floor&amp;action=history"/>
	<updated>2026-11-17T04:13:54Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Floor&amp;diff=25931&amp;oldid=prev</id>
		<title>2024年6月28日 (五) 21:17 wiki&gt;Pppery</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Floor&amp;diff=25931&amp;oldid=prev"/>
		<updated>2024-06-28T21:17:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#ifexpr:({{{1}}})&amp;gt;=2^52or({{{1}}})&amp;lt;-(2^52)|({{{1}}})|floor(({{{1}}}))}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template produces an expression for the value of a given expression, rounded down to an integer. If the value is in the range of integer-type numbers, the resulting expression is of type integer.&lt;br /&gt;
&lt;br /&gt;
Thus, when applying &amp;lt;code&amp;gt;#expr&amp;lt;/code&amp;gt;, if the value is in the range of [[Manual:Expr parser function syntax#General|integer-type numbers]] the exact result is produced. The reason for not applying &amp;lt;code&amp;gt;#expr&amp;lt;/code&amp;gt; in this template is:&lt;br /&gt;
*for integer-type numbers: in subsequent use in another expression the value would be rounded to float&lt;br /&gt;
*for floats: they would be rounded to 14 digits&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
*{{xpsoc|floor|123.45}}&lt;br /&gt;
*{{xpsoc|floor|10/7}}&lt;br /&gt;
*{{xpsoc|floor|123.45e20}}&lt;br /&gt;
&lt;br /&gt;
Advantage compared with the function floor:&lt;br /&gt;
*for integer-type numbers with an absolute value between 2^53 and 2^63 the function rounds to float (not necessarily downward), while  the template gives the integer-type expression for the exact result &lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematical templates|{{PAGENAME}}]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Pppery</name></author>
	</entry>
</feed>