<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AFloor</id>
	<title>Template:Floor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AFloor"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Floor&amp;action=history"/>
	<updated>2026-04-19T05:39:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:Floor&amp;diff=7258&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;&lt;includeonly&gt;{{#ifexpr:({{{1}}})&gt;=2^52or({{{1}}})&lt;-(2^52)|({{{1}}})|floor(({{{1}}}))}}&lt;/includeonly&gt;&lt;noinclude&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.  Thus, when applying &lt;code&gt;#expr&lt;/code&gt;, if the value is in the range of integer-type numbers the exact result is...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Floor&amp;diff=7258&amp;oldid=prev"/>
		<updated>2026-04-17T06:42:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&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;  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.  Thus, when applying &amp;lt;code&amp;gt;#expr&amp;lt;/code&amp;gt;, if the value is in the range of &lt;a href=&quot;/wiki/Manual:Expr_parser_function_syntax#General&quot; title=&quot;Manual:Expr parser function syntax&quot;&gt;integer-type numbers&lt;/a&gt; the exact result is...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&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>Majestix</name></author>
	</entry>
</feed>