Hello All,
I'm having problems with the output of queries that return the values from a decimal column in one of my tables. The values return as desired unless they are between 1 and 0. In this case the zero is truncated from before the decimal point. E.g
Value Returned as
1.56 1.56
7 7.00
0.98 .98
0 .00
The column is of type decimal with a scale of 2 and precision of 7 and length of 5. I have tried altering both these values and changing the column type to numeric, but still receive the same output.
The values are not stored like this either. Looking at the values in the database shows them to be 0.98, 0 etc etc. It is only when I run the query that the ouput alters to that above.
I'm running MS SQL Server 7
Regards
Charlie
I'm having problems with the output of queries that return the values from a decimal column in one of my tables. The values return as desired unless they are between 1 and 0. In this case the zero is truncated from before the decimal point. E.g
Value Returned as
1.56 1.56
7 7.00
0.98 .98
0 .00
The column is of type decimal with a scale of 2 and precision of 7 and length of 5. I have tried altering both these values and changing the column type to numeric, but still receive the same output.
The values are not stored like this either. Looking at the values in the database shows them to be 0.98, 0 etc etc. It is only when I run the query that the ouput alters to that above.
I'm running MS SQL Server 7
Regards
Charlie