<?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%3ATrunc%2Fdoc</id>
	<title>Template:Trunc/doc - 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%3ATrunc%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Trunc/doc&amp;action=history"/>
	<updated>2026-04-23T18:51:10Z</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:Trunc/doc&amp;diff=7260&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;{{Documentation subpage}} &lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&gt;  This template produces an expression for the truncated value of a given expression. If the value is in the range of integer-type numbers (in the range {{numf|trunc-2^63}} through {{numf|trunc(2^63-1024)+trunc1023}}), the resulting expression is of type integer.  The template also serves as a tool to enter an integer larger than {{numf|2^53}}, avoiding...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Trunc/doc&amp;diff=7260&amp;oldid=prev"/>
		<updated>2026-04-17T07:29:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;  This template produces an expression for the truncated value of a given expression. If the value is in the range of integer-type numbers (in the range {{numf|trunc-2^63}} through {{numf|trunc(2^63-1024)+trunc1023}}), the resulting expression is of type integer.  The template also serves as a tool to enter an integer larger than {{numf|2^53}}, avoiding...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template produces an expression for the truncated value of a given expression. If the value is in the range of integer-type numbers (in the range {{numf|trunc-2^63}} through {{numf|trunc(2^63-1024)+trunc1023}}), the resulting expression is of type integer.&lt;br /&gt;
&lt;br /&gt;
The template also serves as a tool to enter an integer larger than {{numf|2^53}}, avoiding rounding to float: split the digits up into two parameters, each forming an integer not larger than that limit, and avoiding leading zeros in the second parameter. If the latter requires a larger first parameter: for every trailing 0 it can be a factor 2 larger then mentioned (see also [[Help:Calculation accuracy#Integers]]). To enter an integer smaller than -{{numf|2^53}} explicitly, do the same with a minus sign before each part.&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 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;
See [[m:Template:Trunc]] for examples.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Mathematical templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
</feed>