![]() |
Transact SQL
:
declare @a decimalOutput: Quote:
The expected result should be 126.98. Why the output is converted to 127????:confused: |
You could try using ISNULL(@a, 0.0), just in case ISNULL is converting the value of @a to the type of the default value.
Edit: Looking at MSDN it seems that "decimal" means zero digits to the right of the decimal point. You might want to try chaging your definition of @a to "decimal(18,2)" or even "float". |
| All times are GMT -5. The time now is 1:05 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC