<?xml version="1.0" encoding="windows-1252"?>
<node id="24417" title="Answer: How do I round a number?" created="2000-07-26 05:46:16" updated="2005-08-11 06:35:14">
<type id="1888">
categorized answer</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
How about

&lt;code&gt;Use integer;
$thevalue*=1;&lt;/code&gt;

Seems the simplest, IMHO. 
It rounds everything down, btw - so it acts kinda like 'div' in PASCAL. That's where it's useful. For rounding to the nearest, use any of the above.</field>
<field name="parent_node">
24335</field>
</data>
</node>
