<?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>Java Archives - IODocs</title>
	<atom:link href="https://www.iodocs.com/java/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.iodocs.com/java/</link>
	<description>IODocs: Comprehensive How-To Guides, Software Tutorials, and More IODocs.com</description>
	<lastBuildDate>Tue, 22 Jan 2019 22:21:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.iodocs.com/wp-content/uploads/2019/01/cropped-logoIODOCSretina-32x32.avif</url>
	<title>Java Archives - IODocs</title>
	<link>https://www.iodocs.com/java/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to round a number to n decimal places in Java</title>
		<link>https://www.iodocs.com/round-number-n-decimal-places-java/</link>
		
		<dc:creator><![CDATA[rck]]></dc:creator>
		<pubDate>Sun, 21 Jan 2018 06:11:01 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<guid isPermaLink="false">http://iodocs.com/?p=193</guid>

					<description><![CDATA[<p>Use setRoundingMode, set the RoundingMode explicitly to handle your issue with the half-even round, then use the format pattern for your required output. DecimalFormat df = new DecimalFormat("#.####"); df.setRoundingMode(RoundingMode.CEILING); for (Number n : Arrays.asList(12, 123.12345, 0.23, 0.1, 2341234.212431324)) { Double d = n.doubleValue(); System.out.println(df.format(d)); } gives the output: 12 123.1235 0.23 0.1 2341234.2125 What I&#8217;d [&#8230;]</p>
<p>The post <a href="https://www.iodocs.com/round-number-n-decimal-places-java/">How to round a number to n decimal places in Java</a> appeared first on <a href="https://www.iodocs.com">IODocs</a>.</p>
]]></description>
		
		
		
			</item>
	</channel>
</rss>
