Home : Products : Gossamer Links : PHP Front End :

Products: Gossamer Links: PHP Front End: Re: [pcmania] Calculations ?!?: Edit Log

Here is the list of edits for this post
Re: [pcmania] Calculations ?!?
How about;

<? $val = 1000 / $FieldName; $var2 = sprintf("%2f", $var); echo $var2; ?>

You may be able to cut this down to;

<? printf("%2f", 1000 / $FieldName); ?>

But I'm not sure how PHP will handle it...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Nov 1, 2002, 8:03 AM

Edit Log: