Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal Calculation

Status
Not open for further replies.

lah3233

MIS
Jul 15, 2003
33
US
I've got a programmer trying to use this statement...

Select 3/8

..and have it return the decimal value of 0.375

Right now it returns the value of 0.

Can anyone help me get this return the correct value??

 
just do select 3./8

if you want to modefy little
select cast((3./8) as decimal(6,3))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top