|
Archives of the TeradataForumMessage Posted: Wed, 16 Jan 2013 @ 20:00:23 GMT
I have issue with teradata roundoff decimal.My target is decimal(7,2).The source values are coming as below 20.68560 -> 20.68 (If 3rd digit is 5 AND preceding value if EVEN, then it is truncated) 20.69560 -> 20.70 (If 3rd digit is 5 AND preceding value if ODD, then it is rounded) I want wherever the third decimal place is 5 or gretr than 5 it shoud be roundoff 20.68560 should give 20.70 not 20.68. Any suggestion.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||