Discrepancy with AsString
Posted: Tue May 07, 2019 4:27 pm
Hello,
I have a decimal field named #WEBA_ORDERANOUNT with length 15 and 2 decimals.
The problem is that #orderAmount.AsString and #WEBA_ORDERANOUNT.AsString gives different values
i.e. (within a server module):
Define_Com Class(#WEBA_ORDERANOUNT) Name(#orderAmount)
#orderAmount = 0.20
#orderAmount.AsString -> 0.2
--------------------------------------
#WEBA_ORDERANOUNT := 0.20
#WEBA_ORDERANOUNT.AsString -> 0.20
Why is this happening, I was expecting identical results.
cheers,
Sotiris
I have a decimal field named #WEBA_ORDERANOUNT with length 15 and 2 decimals.
The problem is that #orderAmount.AsString and #WEBA_ORDERANOUNT.AsString gives different values
i.e. (within a server module):
Define_Com Class(#WEBA_ORDERANOUNT) Name(#orderAmount)
#orderAmount = 0.20
#orderAmount.AsString -> 0.2
--------------------------------------
#WEBA_ORDERANOUNT := 0.20
#WEBA_ORDERANOUNT.AsString -> 0.20
Why is this happening, I was expecting identical results.
cheers,
Sotiris