Sep 25, 2007 #1 scotttom IS-IT--Management Mar 5, 2002 143 US Why am I getting a result of .0000000 Convert(numeric(10,7),(2000/(tblCatalog.Concentration))) AS ADDTHIS Thanks in advance!
Why am I getting a result of .0000000 Convert(numeric(10,7),(2000/(tblCatalog.Concentration))) AS ADDTHIS Thanks in advance!
Sep 25, 2007 1 #2 gmmastros Programmer Feb 15, 2005 14,912 US Integer Math! Try this.... Code: Select 2/10 Select 2.0/10 Notice how the first returns 0 and the second returns 0.2? So... [tt][blue]Convert(numeric(10,7),(2000[!].0[/!]/(tblCatalog.Concentration))) AS ADDTHIS[/blue][/tt] -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom Upvote 0 Downvote
Integer Math! Try this.... Code: Select 2/10 Select 2.0/10 Notice how the first returns 0 and the second returns 0.2? So... [tt][blue]Convert(numeric(10,7),(2000[!].0[/!]/(tblCatalog.Concentration))) AS ADDTHIS[/blue][/tt] -George "The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
Sep 25, 2007 Thread starter #3 scotttom IS-IT--Management Mar 5, 2002 143 US DAMN! it's amazing how little things can cause such huge dents in so many walls. Thanks, Scott Upvote 0 Downvote