<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_roundTbl</id>
		<title>MIST roundTbl - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_roundTbl"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_roundTbl&amp;action=history"/>
		<updated>2026-04-25T17:33:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_roundTbl&amp;diff=878&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.utils.roundTbl|  |vNum = Mist 4.1  |desc= This function rounds all values on the first level of a table to the desired amount. Numbers within...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_roundTbl&amp;diff=878&amp;oldid=prev"/>
				<updated>2018-04-13T08:27:22Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.utils.roundTbl|  |vNum = Mist 4.1  |desc= This function rounds all values on the first level of a table to the desired amount. Numbers within...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.utils.roundTbl|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.1&lt;br /&gt;
&lt;br /&gt;
|desc= This function rounds all values on the first level of a table to the desired amount. Numbers within nested tables will be ignored. Optional idp defines how many places after the decimal to round the number to; for example, an idp of 2 means the number will be rounded to the nearest hundredth. idp can be negative too, for example, -3 would round to the nearest thousand.  If not specified, idp defaults to 0 (rounds to the nearest whole number).|&lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= numbers&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= &lt;br /&gt;
&lt;br /&gt;
|optName1= &lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= table with numbers&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= &lt;br /&gt;
&lt;br /&gt;
|example= &lt;br /&gt;
The following will return a vec3 table of the units current position rounded to tenths of a meter. &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
do&lt;br /&gt;
:local point = mist.utils.roundTbl(Unit.getByName('myUnit').getPosition().p, 1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
&lt;br /&gt;
|funcs= {{listOfMistUnitConversions}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category:MIST|roundTbl]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>