Previous string-representation of type-decimal values in the ASE did not show negative decimals, due to *.Abs(dec.i). By using a default value to execute big.NewInt(0).Abs(dec.i) this issue is fixed (Credits to @ntnn).
Negative numbers of ASE-type smallmoney are misrepresented:
Inserted value: -999
Value displayed: 428497.7296
"Explanation": 429496.7295 (maxInt32 without ".") - 999 = 428497.7296
Thus, the byteslices are misinterpreted, which can be fixed by 'casting' inbetween to int32 (Credits to @ntnn)
Description
Previous string-representation of type-decimal values in the ASE did not show negative decimals, due to
*.Abs(dec.i)
. By using a default value to executebig.NewInt(0).Abs(dec.i)
this issue is fixed (Credits to @ntnn).Negative numbers of ASE-type
smallmoney
are misrepresented:Thus, the byteslices are misinterpreted, which can be fixed by 'casting' inbetween to
int32
(Credits to @ntnn)How was the patch tested?
Manually compiled and tested by @ntnn and me