<div dir="ltr">I must be missing something. Let&#39;s say my sum is 22 and my argument is 0, the result is 22. If the argument is 1, the result is 220. If the argument is 2, 2200 is the result.<br><br><div class="gmail_quote">
On Tue, Jul 15, 2008 at 11:35 AM, Hans &lt;<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Tuesday, July 15, 2008, 3:45:09 PM, Scott Smith wrote:<br>
<br>
&gt; I have a Fox form that adds a few currency amounts together. It would be<br>
&gt; nice if I could force ###.## formatting. The only thing I found that uses<br>
&gt; currency format is Sortable tables, but that recipe isn&#39;t right for this<br>
&gt; form.<br>
<br>
</div></div>try a custom markup expression:<br>
add to config:<br>
<br>
$MarkupExpr[&#39;numfmt&#39;] = &#39;number_format($args[0], $args[1], $args[2], $args[3])&#39;;<br>
<br>
<br>
use like {(numfmt {$:Sum} 2)}<br>
<br>
first argument is floating point number.<br>
second argument is integer for decimal places.<br>
third argument is string for decimal point.<br>
fourth argument is string for thousand separator.<br>
<br>
I made no attempt to clean input values.<br>
<br>
See <a href="http://us2.php.net/manual/en/function.number-format.php" target="_blank">http://us2.php.net/manual/en/function.number-format.php</a><br>
<font color="#888888"><br>
 &nbsp;~Hans<br>
<br>
</font></blockquote></div><br></div>