Question

how to debug Strategy property-set component

Hi there,

In my strategy, there are multiple different components used. One of the component which is used as Property-Set components.

Ex: TotalAmount = .Amount * quantity.

On a clipboard and tracer .Amount shows = 15.55 and quantity is 6. While trying to see the value of TotalAmount in strategy reults, It shows 93.7000000000000000000001. I wanted to understand how this 15 digit decimal is derived.

Thanks,

Niranjan.

Comments

Keep up to date on this post and subscribe to comments

March 23, 2019 - 6:20am

It's pega 6.2 version.

March 25, 2019 - 4:11am

I would assume both properties are doubles, so they can't be stored exactly, which then causes the multiplication to be slightly off the expected value. Storing them as bigdecimals should keep full precision.