I work in an application that is around 5 years old. While debugging a program to solve a prod error, I have come across a data type like
The error was that the variable with the above mentioned data type doesnt accept positive values and its size was 14 bytes. When I removed the negative sign it was accepting both positive and negative values but the size became 4 bytes(I saw the variable sizes through expeditor)
Can anyone tell me what this declaration means and also the significance of the negative sign
which very clearly proves that a -(10)9.99 field will accept a positive value. The negative sign is printed if and only if the value is negative -- otherwise a space is printed. The -(10)9.99 indicates there are 11 characters in front of the decimal point and 2 characters after the decimal point. If the value is negative, the negative sign will appear just before the first significant digit.