
nkuebelbeck
VIP Member
I'm trying to sum records in the F4981.FHNAMT using JDB_FetchAggregate. I've got it doing a sum by shipment number but when the number comes out of JDB_FetchAggregate in the buffer, it's not respecting the decimals of the data in the table.
example
SHPN | NAMT
1234 | 10.00
1234 | 10.00
2000 is what i'm getting from the aggBuffer[0] and not 20.00
I noticed because I was attempting to compare the sum to another mathnumeric value (ddict AA) and it's not returning 0 when doing MathCompare();
is there something I need to do to make this work other than manually dividing the aggBuffer[0] value?
example
SHPN | NAMT
1234 | 10.00
1234 | 10.00
2000 is what i'm getting from the aggBuffer[0] and not 20.00
I noticed because I was attempting to compare the sum to another mathnumeric value (ddict AA) and it's not returning 0 when doing MathCompare();
is there something I need to do to make this work other than manually dividing the aggBuffer[0] value?