PRB: Multiplying Numeric Datatypes May Yield Lower Precision (163069)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 6.5
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q163069 SYMPTOMS When you multiply two highly precise numeric datatypes, you
may not receive the expected precision in the result. For example, consider the
statements that follow:
declare @num1 numeric(28,8),@num2 numeric(28,8),@num3 numeric(28,8)
select @num1=1.0,@num2=0.12345678
select @num3=@num1*@num2
select @num3
The expected value is 0.12345678. However, in SQL Server 7.0 and
SQL Server 2000, the value that is returned is 0.12345700, and
on SQL Server 6.5 the value returned is 0.12345600.
| Modification Type: | Major | Last Reviewed: | 2/25/2004 |
|---|
| Keywords: | kbBug kbpending kbprb kbusage KB163069 |
|---|
|