<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Round</id>
		<title>Core Function Round - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Round"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Round&amp;action=history"/>
		<updated>2026-05-16T12:02:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Round&amp;diff=1222&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Round( &lt;expression&gt;, &lt;decimalplaces&gt; ) &lt;/pre&gt;  === Description ===  Returns a number rounded to a specified number of decimal places.  === Parameters ===  ==== expression =...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Round&amp;diff=1222&amp;oldid=prev"/>
				<updated>2011-12-02T19:01:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Round( &amp;lt;expression&amp;gt;, &amp;lt;decimalplaces&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Returns a number rounded to a specified number of decimal places.  === Parameters ===  ==== expression =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Round( &amp;lt;expression&amp;gt;, &amp;lt;decimalplaces&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Returns a number rounded to a specified number of decimal places.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
Any valid numeric expression.&lt;br /&gt;
&lt;br /&gt;
==== newbase ====&lt;br /&gt;
&lt;br /&gt;
Optional; Number indicating how many places to the right of the decimal are included in the rounding. If omitted, Round returns an integer.&lt;br /&gt;
&lt;br /&gt;
=== Return Value === &lt;br /&gt;
&lt;br /&gt;
Returns rounded number.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
The decimalplaces parameter can be negative which allows you to round to the ones, tens, hundred, etc. place.&lt;br /&gt;
&lt;br /&gt;
Note that up to fifteen digits of a number are displayed, and note that decimalplaces will never pad a number with trailing zeros.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$x = Round(-1.582, 1); //returns -1.6&lt;br /&gt;
$y = Round(3.1415, 9); //no change&lt;br /&gt;
$z = Round(123.5, -1); //returns 120&lt;br /&gt;
println(&amp;quot;X: $x Y: $y Z:$z&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>