I have a place for the extra penny.  Let me give you my bank routing
number....

~Brad

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 05, 2006 10:05 AM
To: CF-Talk
Subject: RE: MSSQL Function (Div 0)?

Both excellent solutions thanks guys, in the end I went with...

isNull(m.ListPrice,0) + 0.01

This will produce slightly inacurate results but since this is a
percentage
calculation that gets truncated to an INT anyway the minor inacuracy
caused
by the extra penny doesn't matter in this case.  I will however be using
that function in other places, cheers.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262903
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to