manish_patel
14th January 2016, 13:42
Hi,

Below expression gives different result in Dev and Test env for same inputs.


domain tcqiv1 o.outp.quan
domain tcqiv1 i.quan
domain tcqiv1 i.grp.fact

o.outp.quan = i.quan / i.grp.fact
o.outp.quan = 0.332 / 0.023714

For Dev:
o.outp.quan = 14

For Test:
o.outp.quan = 14.000169

All variables that used in expression are declared with the same domain in both the env.

Technically, for Dev also it should give 14.000169. Any idea what makes this differences?

rahul ingale
14th January 2016, 15:24
Ideally,it should be given 14.00169.please check display format of domain in both environment also check in ttadv1485m000 for formats

mark_h
14th January 2016, 15:25
I never really figured out what caused the difference between our production environment and dev/test. It did the same type thing where production would be the 14.000169 and dev/test would be 14. In our case I had to go through and make sure we used double.cmp in the programs. On dev/test box 256/16 (both doubles) would be 16 and production could be any where from 15.9999999 to 16.0000001 (examples only not actual numbers). I just made sure we handled them correctly.

manish_patel
15th January 2016, 15:28
Thanks Mark and Rahul,

Yes Rahul, that I already checked and more importantly it is not concerned as this are the values what I see during debug.


In Debugger by clicking on variable it shows the value as below
i.quan = 0.332
i.grp.fact = 0.023714

However, it gives strange results when I execute the below two expression in debugger command window
i.quan / i.grp.fact = 14
0.332 / 0.023714 = 14.000169

Mark, any thoughts on this?

vamsi_gujjula
15th January 2016, 20:47
Manish ,

even i faced a similar situation , but actual values were correct on dev rather than prod.

finally i just used a different domain to resolve the issue from prod

i wonder how this happens...

Regards
vamsi

manish_patel
19th January 2016, 05:14
Thanks Vamsi and Mark for this inputs and sharing your experience.