Removing a decimal point from a number and converting it to a whole number in PHP
<p>I have a small issue.... </p>

<p>I have a php function which is generating a number based on dividing two whole numbers. This will always be expressed as a percentage of 1. </p>

<p>eg, my function would generate a number such as 0.3 or 0.01222 or 0.23</p>

<p>I need to convert this percentage to a whole number number as a part of 100 with three digits. </p>

<p>so 0.3 would become 030, 0.01222 would become 001 and 1 would become 100</p>

<p>Is there a simple way to do this in PHP?</p>

<p>Cheers :)</p>
