RSS Forums RSS
Please support our MS SQL advertiser: Programming Forums

How to get the result for smaller number divide larger number?

Join Date: Jun 2005
Posts: 1
Reputation: 330m is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
330m 330m is offline Offline
Newbie Poster

How to get the result for smaller number divide larger number?

  #1  
Jun 10th, 2005
Hi All,

When I run the query:

select (100/50)

It give me "2"... good.

But when I run the query:

select (50/100)

I was expected it will give me 0.5... but it gives me 0 instead? Why? and How can I get the "0.5"?
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:57 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC