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

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Truncate&amp;diff=1238&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Truncate( &lt;expression&gt; ) &lt;/pre&gt;  === Description ===  Calculates the integral part of a specified decimal number.  === Parameters ===  ==== expression ====  Any valid numer...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Truncate&amp;diff=1238&amp;oldid=prev"/>
				<updated>2011-12-03T10:04:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Truncate( &amp;lt;expression&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Calculates the integral part of a specified decimal number.  === Parameters ===  ==== expression ====  Any valid numer...&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;
Truncate( &amp;lt;expression&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Calculates the integral part of a specified decimal number.&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;
=== Return Value === &lt;br /&gt;
&lt;br /&gt;
The integral part of expression; that is, the number that remains after any fractional digits have been discarded.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
Floor() rounds down&lt;br /&gt;
&lt;br /&gt;
Ceiling() rounds up&lt;br /&gt;
&lt;br /&gt;
and Truncate() rounds towards zero.&lt;br /&gt;
&lt;br /&gt;
Thus, Truncate() is like Floor() for positive numbers, and like Ceiling() for negative numbers.&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;
$decimalNumber = 32.7865;&lt;br /&gt;
// Displays 32&lt;br /&gt;
Println(Truncate($decimalNumber));&lt;br /&gt;
&lt;br /&gt;
$decimalNumber = -32.9012;&lt;br /&gt;
// Displays -32         &lt;br /&gt;
Println(Truncate($decimalNumber));&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>