Abs function is not working correctly
Posted: Thu Jul 01, 2004 3:04 am
Abs function is not working correctly.
For ex:
Abs(-12.56) returns 13.00.
For ex:
Abs(-12.56) returns 13.00.
A short text to describe your forum
http://dsxchange.com./
Output Column has been delcared as Numeric with length 20 and scale 6.ANSHULA wrote:What is the definition (SQL type, length and scale) of input and output columns ?
If output column is declared Numeric without scale specification, then
Abs(-12.56) returns 13.00
If proper scale specified, then
Abs(-12.56) returns correct value.