PHP formula needed to caculate a simple format
<p>I am trying to take an amount and convert it to a units type format... </p>

<p>For example:</p>

<p>( note: don't worry about the dollar sign )</p>

<p>Total is $400</p>

<p>I need to display it as 4 * 100</p>

<p>Another Example</p>

<p>Total is $450</p>

<p>I need to display it as 4 * 100 |  50 * 1</p>

<p>So another words there are only 100 and 1 units.</p>

<p>I was thinking for 3 hours already and nothing seems to come to mind...Perhaps someone out there has done something similar and already know the answer?</p>
