AwareIm not seeing change on 4 decimal places

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
karelh
Posts: 86
Joined: Wed Oct 26, 2016 10:20 pm

AwareIm not seeing change on 4 decimal places

Post by karelh »

HI

Does anyone know why AIM will not see the difference between 2 fields if the difference is on the 4th or higher decimal place. Example:

I have process capturing new rates from the user and then overwrites a different business object with the new rate. The old rate would be 0.1219 and the new rate will be 0.1220. As soon as the process wants to change the value the log says "Value has not changed. Value is still 0.1220." If you open that record you can see it is 0.01219. It's as if the rule system rounds the numbers before seeing if there is a change.

Can I somehow force it to still write the value without AIM checking if it changed?

Thanks!
karelh
Posts: 86
Joined: Wed Oct 26, 2016 10:20 pm

Re: AwareIm not seeing change on 4 decimal places

Post by karelh »

Capture.JPG
Capture.JPG (35.95 KiB) Viewed 3660 times
See attachment/screenshot as example...
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: AwareIm not seeing change on 4 decimal places

Post by aware_support »

You cannot compare decimal numbers using simple equality - you need to do something like this:

IF ABS(Object.Nmb1 - Object.Nmb2) < 0.0001 THEN
DO SOMETHING WHEN EQUAL
Aware IM Support Team
Post Reply