|
|
Archives of the TeradataForum
Message Posted: Thu, 29 Jun 2006 @ 19:14:29 GMT
Subj: | | Decimal rounding |
|
From: | | Pandey, Vivek |
Why do we get same answers for the below decimal rounding? Excel gives 6.9 & 6.8 respectively.
BTEQ -- Enter your DBC/SQL request or BTEQ command:
sel cast(6.85 as dec(2,1));
sel cast(6.85 as dec(2,1));
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
6.85
----
6.8
BTEQ -- Enter your DBC/SQL request or BTEQ command:
sel cast(6.75 as dec(2,1));
sel cast(6.75 as dec(2,1));
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
6.75
----
6.8
Thanks, Vivek
| |