<?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%3AHex%2Fdoc</id>
	<title>Template:Hex/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%3AHex%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Hex/doc&amp;action=history"/>
	<updated>2026-04-19T07:32:59Z</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:Hex/doc&amp;diff=7245&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;{{Documentation subpage}} This template shows the exact value of a number of type float.   The significand is given in hexadecimal format, which, apart from the sign, consists of a fixed &quot;&lt;code&gt;1.&lt;/code&gt;&quot;, followed by 13 hexadecimal characters.  Denormal numbers are shown in normalized format, not in internal format, but without inherently zero digits.  No distinction is made between 0 and -0.  For numbers of type...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:Hex/doc&amp;diff=7245&amp;oldid=prev"/>
		<updated>2026-04-17T06:23:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} This template shows the exact value of a number of type float.   The &lt;a href=&quot;https://en.wikipedia.org/wiki/significand&quot; class=&quot;extiw&quot; title=&quot;w:significand&quot;&gt;significand&lt;/a&gt; is given in &lt;a href=&quot;https://en.wikipedia.org/wiki/hexadecimal&quot; class=&quot;extiw&quot; title=&quot;w:hexadecimal&quot;&gt;hexadecimal&lt;/a&gt; format, which, apart from the sign, consists of a fixed &amp;quot;&amp;lt;code&amp;gt;1.&amp;lt;/code&amp;gt;&amp;quot;, followed by 13 hexadecimal characters.  &lt;a href=&quot;https://en.wikipedia.org/wiki/Denormal_number&quot; class=&quot;extiw&quot; title=&quot;w:Denormal number&quot;&gt;Denormal numbers&lt;/a&gt; are shown in normalized format, not in internal format, but without inherently zero digits.  No distinction is made between 0 and -0.  For numbers of type...&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;
This template shows the exact value of a number of type float. &lt;br /&gt;
&lt;br /&gt;
The [[w:significand|significand]] is given in [[w:hexadecimal|hexadecimal]] format, which, apart from the sign, consists of a fixed &amp;quot;&amp;lt;code&amp;gt;1.&amp;lt;/code&amp;gt;&amp;quot;, followed by 13 hexadecimal characters.&lt;br /&gt;
&lt;br /&gt;
[[w:Denormal number|Denormal numbers]] are shown in normalized format, not in internal format, but without inherently zero digits.&lt;br /&gt;
&lt;br /&gt;
No distinction is made between 0 and -0.&lt;br /&gt;
&lt;br /&gt;
For numbers of type integer which are not exactly representable as float the integer is rounded to float. If an integer just below 2^n is rounded to 2^n the result is shown in the form 2*2^(n-1), thus giving the  exponent the value it would have in an exact floating-point representation (which would require up to 10 bits more, hence up to three hexadecimal digits more).&lt;br /&gt;
&lt;br /&gt;
See also [[Manual:Floating-point errors in expr parser function]].&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*{{xpsoc|hex}}&lt;br /&gt;
*{{xpsoc|hex|a}}&lt;br /&gt;
*{{xpsoc|hex|0}}&lt;br /&gt;
*{{xpsoc|hex|-0}}&lt;br /&gt;
*{{xpsoc|hex|1/7}}&lt;br /&gt;
*{{xpsoc|hex|-2/3}}&lt;br /&gt;
*{{xpsoc|hex|123}}&lt;br /&gt;
*{{xpsoc|hex|.0123}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|hex|1+2^-52}}&lt;br /&gt;
*{{xpsoc|hex|1.0000000000000002}}&lt;br /&gt;
*{{xpsoc|hex|1+2e-16}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|hex|-1e309}}&lt;br /&gt;
*{{xpsoc|hex|1e309}}&lt;br /&gt;
*{{xpsoc|hex|1e308}}&lt;br /&gt;
*{{xpsoc|hex|1e307}}&lt;br /&gt;
*{{xpsoc|hex|1e306}}&lt;br /&gt;
*{{xpsoc|hex|1e305}}&lt;br /&gt;
*{{xpsoc|hex|1e304}}&lt;br /&gt;
*{{xpsoc|hex|1e303}}&lt;br /&gt;
*{{xpsoc|hex|1e302}}&lt;br /&gt;
*{{xpsoc|hex|1e301}}&lt;br /&gt;
*{{xpsoc|hex|1e300}}&lt;br /&gt;
*{{xpsoc|hex|1e299}}&lt;br /&gt;
*{{xpsoc|hex|1e298}}&lt;br /&gt;
*{{xpsoc|hex|1e297}}&lt;br /&gt;
*{{xpsoc|hex|1e296}}&lt;br /&gt;
*{{xpsoc|hex|1e295}}&lt;br /&gt;
*{{xpsoc|hex|1e294}}&lt;br /&gt;
*{{xpsoc|hex|1e293}}&lt;br /&gt;
*{{xpsoc|hex|1e292}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|hex|1e-308}}&lt;br /&gt;
*{{xpsoc|hex|1e-309}}&lt;br /&gt;
*{{xpsoc|hex|1e-310}}&lt;br /&gt;
*{{xpsoc|hex|1e-311}}&lt;br /&gt;
*{{xpsoc|hex|1e-312}}&lt;br /&gt;
*{{xpsoc|hex|1e-313}}&lt;br /&gt;
*{{xpsoc|hex|1e-314}}&lt;br /&gt;
*{{xpsoc|hex|1e-315}}&lt;br /&gt;
*{{xpsoc|hex|1e-316}}&lt;br /&gt;
*{{xpsoc|hex|1e-317}}&lt;br /&gt;
*{{xpsoc|hex|1e-318}}&lt;br /&gt;
*{{xpsoc|hex|1e-319}}&lt;br /&gt;
*{{xpsoc|hex|1e-320}}&lt;br /&gt;
*{{xpsoc|hex|1e-321}}&lt;br /&gt;
*{{xpsoc|hex|1e-322}}&lt;br /&gt;
*{{xpsoc|hex|1e-323}}&lt;br /&gt;
*{{xpsoc|hex|1e-323/2}}&lt;br /&gt;
*{{xpsoc|hex|1e-323/3}}&lt;br /&gt;
*{{xpsoc|hex|1e-323/4}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hex|.{{loop|323|0}}25}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{hex|.{{loop|323|0}}25}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hex|.{{loop|323|0}}24}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{hex|.{{loop|323|0}}24}}&lt;br /&gt;
*{{xpsoc|hex|1000000e-324}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1021}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1022}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1023}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1024}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1025}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1064}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1065}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1066}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1067}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1068}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1069}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1070}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1071}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1072}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1073}}&lt;br /&gt;
*{{xpsoc|hex|1.71*2^-1074}}&lt;br /&gt;
*{{xpsoc|hex|3*2^-1074}}&lt;br /&gt;
*{{xpsoc|hex|2*2^-1074}}&lt;br /&gt;
*{{xpsoc|hex|1*2^-1074}}&lt;br /&gt;
&lt;br /&gt;
Numbers of type integer which are not exactly representable as float:&lt;br /&gt;
*{{xpsoc|hex|trunc(2^62-512)+trunc511}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Mathematical templates|Hex]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
</feed>