Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
s0ftw4r32002
Starting Member
6 Posts |
Posted - 2008-08-27 : 01:54:40
|
| DECLARE @qty floatDECLARE @value floatDECLARE @cogs floatSET @qty = 65300000.00SET @value = 26491627.7334113 ---> original valueset @cogs = @value / @qtyselect @qty * @cogsresult : 26491627.7334112why the result not back orginal value? |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-27 : 01:56:31
|
| same as before . float is only an approximate value.Try more accurate datatypes like decimal or numeric |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|
|