<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LaTeX siunitx Archives - SignificantFiguresCalculator</title>
	<atom:link href="https://significantfigurescalculator.com/category/tools-code/latex-siunitx/feed/" rel="self" type="application/rss+xml" />
	<link>https://significantfigurescalculator.com/category/tools-code/latex-siunitx/</link>
	<description>Every digit, justified.</description>
	<lastBuildDate>Thu, 22 Oct 2026 22:58:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://significantfigurescalculator.com/wp-content/uploads/2026/08/cropped-dd6d33a5-a65a-4d8d-b33e-8b6f5639fddd-150x150.png</url>
	<title>LaTeX siunitx Archives - SignificantFiguresCalculator</title>
	<link>https://significantfigurescalculator.com/category/tools-code/latex-siunitx/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Round to Significant Figures in LaTeX siunitx: A Precision Reference</title>
		<link>https://significantfigurescalculator.com/tools-code/latex-siunitx/round-significant-figures-latex-siunitx/</link>
					<comments>https://significantfigurescalculator.com/tools-code/latex-siunitx/round-significant-figures-latex-siunitx/#respond</comments>
		
		<dc:creator><![CDATA[Tommy C. Moran]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 22:58:15 +0000</pubDate>
				<category><![CDATA[LaTeX siunitx]]></category>
		<category><![CDATA[precision]]></category>
		<category><![CDATA[rounding]]></category>
		<category><![CDATA[significant figures]]></category>
		<guid isPermaLink="false">https://significantfigurescalculator.com/?p=318</guid>

					<description><![CDATA[<p>A comprehensive reference for rounding to significant figures with LaTeX siunitx, including syntax, standards, worked examples, counter-examples, and common pitfalls.</p>
<p>The post <a href="https://significantfigurescalculator.com/tools-code/latex-siunitx/round-significant-figures-latex-siunitx/">How to Round to Significant Figures in LaTeX siunitx: A Precision Reference</a> appeared first on <a href="https://significantfigurescalculator.com">SignificantFiguresCalculator</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2 id="rule-statement-significant-figure-rounding-in-siunitx">Rule Statement: Significant-Figure Rounding in siunitx</h2>
<p>LaTeX&#8217;s <strong>siunitx</strong> package provides a precise, standards-aware way to round numbers to significant figures. The core command is <code>\num[round-mode=figures,round-precision=]{}</code>; for quantities with units, use <code>\qty[round-mode=figures,round-precision=]{}{}</code> in siunitx v3, or <code>\SI</code> in v2 compatibility mode. The option <code>round-mode=figures</code> counts significant digits, not decimal places. <code>round-precision</code> is the number of significant figures to retain. The default is <code>round-mode=none</code>, so no rounding occurs unless requested.</p>
<p>Significant figures are the digits that carry measurement meaning: non-zero digits are always significant; zeros between significant digits are significant; leading zeros are never significant; trailing zeros after a decimal point are significant; trailing zeros in an integer without a decimal point are ambiguous unless marked with an overline or expressed in scientific notation. siunitx rounds the input string according to the requested precision but does not infer measurement uncertainty unless you use <code>round-mode=uncertainty</code>.</p>
<p>Tie-breaking is controlled by <code>round-half</code>. Allowed values are <code>up</code> (default), <code>down</code>, and <code>even</code>. For example, <code>\num[round-mode=figures,round-precision=3,round-half=even]{2.345}</code> yields 2.34, while <code>round-half=up</code> yields 2.35. This distinction matters when matching ISO, ASTM, NIST, or GUM conventions. See <a href="/rounding-methods">Rounding Methods</a> and <a href="/significant-figures-rules">Significant Figures Rules</a> for broader context.</p>
<h2 id="worked-examples">Worked Examples</h2>
<h3 id="example-1-basic-significant-figure-rounding">Example 1: Basic significant-figure rounding</h3>
<p>Round 12345.678 to 3 significant figures. The first three significant digits are 1, 2, and 3. The next digit is 4, so round down: 12300. In siunitx:</p>
<p><code>\num[round-mode=figures,round-precision=3]{12345.678}</code> → 12300. To avoid trailing-zero ambiguity, force scientific notation: <code>\num[round-mode=figures,round-precision=3,scientific-notation=true]{12345.678}</code> → 1.23e4.</p>
<h3 id="example-2-small-number">Example 2: Small number</h3>
<p>Round 0.00123456 to 3 significant figures. Leading zeros are not significant. The first three significant digits are 1, 2, and 3. The next digit is 4, so round down: 0.00123.</p>
<p><code>\num[round-mode=figures,round-precision=3]{0.00123456}</code> → 0.00123.</p>
<h3 id="example-3-tie-breaking">Example 3: Tie-breaking</h3>
<p>Round 9.8765 to 3 significant figures. The first three digits are 9, 8, and 7. The next digit is 6, so round up: 9.88. For a tie, round 2.345 to 3 significant figures. With <code>round-half=even</code>, the retained digit 4 is even, so keep it: 2.34. With <code>round-half=up</code>, increase it: 2.35.</p>
<h2 id="counter-examples">Counter-Examples</h2>
<p>These examples highlight frequent errors when rounding with siunitx.</p>
<ul>
<li><strong>Confusing figures with places:</strong> <code>\num[round-mode=places,round-precision=2]{12345.678}</code> gives 12345.68, not 12300. Use <code>round-mode=figures</code> for significant figures.</li>
<li><strong>Ignoring leading zeros:</strong> Rounding 0.002345 to 2 significant figures is 0.0023, not 0.0024. Leading zeros only locate the decimal point.</li>
<li><strong>Assuming trailing zeros are significant:</strong> The integer 1200 has two, three, or four significant figures depending on context. Write 1.2 × 10³ or 1.20 × 10³ to remove ambiguity.</li>
<li><strong>Double rounding:</strong> Rounding 2.445 first to 2.45 and then to 2.4 can produce a different result than rounding directly to two significant figures (2.4 with half-even, 2.5 with half-up). Round once, at the final precision.</li>
<li><strong>Using the wrong tie rule:</strong> Many standards prefer round-half-to-even, but siunitx defaults to <code>round-half=up</code>. Set <code>round-half=even</code> when required.</li>
</ul>
<h2 id="convention-comparison-table">Convention Comparison Table</h2>
<table>
<thead>
<tr>
<th>Convention / Standard</th>
<th>Tie-breaking</th>
<th>Scope</th>
<th>siunitx option</th>
</tr>
</thead>
<tbody>
<tr>
<td>ISO 80000-1:2009, 7.3.3</td>
<td>Round half to even</td>
<td>Quantities and units; general rounding</td>
<td><code>round-half=even</code></td>
</tr>
<tr>
<td>ASTM E29-22, Section 6</td>
<td>Round half to even</td>
<td>Significant digits in test data and conformance</td>
<td><code>round-half=even</code></td>
</tr>
<tr>
<td>NIST SP 811, §7.9</td>
<td>Round half to even</td>
<td>SI usage and rounding guidance</td>
<td><code>round-half=even</code></td>
</tr>
<tr>
<td>JCGM 100:2008 (GUM), 7.2.6</td>
<td>Round half to even</td>
<td>Measurement uncertainty expression</td>
<td><code>round-half=even</code></td>
</tr>
<tr>
<td>siunitx default</td>
<td>Round half up</td>
<td>Package default unless changed</td>
<td><code>round-half=up</code></td>
</tr>
</tbody>
</table>
<p>Always confirm the governing standard for your discipline. The <a href="/iso-80000">ISO 80000</a>, <a href="/astm-e29">ASTM E29</a>, <a href="/gum-guide">GUM Guide</a>, and <a href="/nist-sp-811">NIST SP 811</a> pages on this site provide deeper clause-level notes.</p>
<h2 id="standards-citation">Standards Citation</h2>
<p>The following standards are authoritative for significant-figure rounding and reporting:</p>
<ul>
<li><strong>ISO 80000-1:2009</strong>, <em>Quantities and units — Part 1: General</em>, Clause 7.3.3: rounding rules, including ties to even.</li>
<li><strong>ASTM E29-22</strong>, <em>Standard Practice for Using Significant Digits in Test Data to Determine Conformance with Specifications</em>, Section 6: significant-digit rounding for test data.</li>
<li><strong>NIST SP 811</strong>, <em>Guide for the Use of the International System of Units (SI)</em>, §7.9: rounding and significant figures.</li>
<li><strong>JCGM 100:2008 (GUM)</strong>, <em>Evaluation of measurement data — Guide to the expression of uncertainty in measurement</em>, Clause 7.2.6: rounding of uncertainty and results.</li>
</ul>
<p>These documents agree on the general principle of rounding to the nearest retained digit but specify tie-breaking carefully. siunitx can reproduce any of these conventions through <code>round-half</code>.</p>
<h2 id="common-mistakes">Common Mistakes</h2>
<ul>
<li>Using <code>round-mode=places</code> when the task asks for significant figures.</li>
<li>Forgetting that <code>round-precision</code> must be a positive integer for figures and places.</li>
<li>Not setting <code>round-half=even</code> when following ISO, ASTM, NIST, or GUM.</li>
<li>Rounding intermediate calculations instead of carrying extra digits and rounding only the final result.</li>
<li>Treating integer trailing zeros as significant without overline or scientific notation.</li>
<li>Assuming siunitx propagates uncertainty; it formats, but does not compute uncertainty budgets.</li>
</ul>
<h2 id="software-behavior-note">Software Behavior Note</h2>
<p>siunitx v3.0 and later use <code>\qty</code> for quantities, while <code>\SI</code> remains available in compatibility mode. The rounding engine is deterministic and string-based: it rounds the displayed number, not the underlying floating-point value. This avoids many binary floating-point artifacts but means you should still round only once. For uncertainty-bearing values, <code>round-mode=uncertainty</code> aligns the result and uncertainty digits. Example: <code>\num[round-mode=uncertainty,round-precision=1]{1.234(56)}</code> → 1.2(6). This site&#8217;s <a href="/significant-figures-calculator">significant figures calculator</a> complements siunitx by handling bulk calculations, but the reference pages here remain the primary source for rules and standards.</p>
<h2 id="quick-reference-table">Quick Reference Table</h2>
<table>
<thead>
<tr>
<th>Option</th>
<th>Values</th>
<th>Effect</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>round-mode</code></td>
<td><code>none</code>, <code>figures</code>, <code>places</code>, <code>uncertainty</code></td>
<td>Selects no rounding, significant figures, decimal places, or uncertainty rounding.</td>
</tr>
<tr>
<td><code>round-precision</code></td>
<td>Positive integer</td>
<td>Number of significant figures, decimal places, or uncertainty digits.</td>
</tr>
<tr>
<td><code>round-half</code></td>
<td><code>up</code>, <code>down</code>, <code>even</code></td>
<td>Controls tie-breaking when the next digit is exactly 5.</td>
</tr>
<tr>
<td><code>scientific-notation</code></td>
<td><code>true</code>, <code>false</code></td>
<td>Forces or suppresses scientific notation to remove trailing-zero ambiguity.</td>
</tr>
<tr>
<td>Command</td>
<td><code>\num</code>, <code>\qty</code>, <code>\SI</code></td>
<td><code>\num</code> for numbers; <code>\qty</code> and <code>\SI</code> for number-unit pairs.</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://significantfigurescalculator.com/tools-code/latex-siunitx/round-significant-figures-latex-siunitx/">How to Round to Significant Figures in LaTeX siunitx: A Precision Reference</a> appeared first on <a href="https://significantfigurescalculator.com">SignificantFiguresCalculator</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://significantfigurescalculator.com/tools-code/latex-siunitx/round-significant-figures-latex-siunitx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
