Jul 17, 2003 #1 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??
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??
Jul 17, 2003 #2 ClaireHCM IS-IT--Management Mar 26, 2003 772 US just do select 3./8 if you want to modefy little select cast((3./8) as decimal(6,3)) Upvote 0 Downvote
Jul 17, 2003 #3 JamesLean Programmer Dec 13, 2002 3,059 GB Code: select 1.0 * 3 / 8 --James Upvote 0 Downvote
Jul 17, 2003 #4 JamesLean Programmer Dec 13, 2002 3,059 GB Sorry, bit daft: Code: SELECT 3.0 / 8 --James Upvote 0 Downvote