AnsweredAssumed Answered

Different results with seemingly identical calcs

Question asked by lannycook on Feb 22, 2012
Latest reply on Feb 23, 2012 by philmodjunk

Title

Different results with seemingly identical calcs

Post

Why would these two seemingly identical calculations return two different results?  Both are written in an FM script with Set Variable statements.  The first calc returns the WRONG value.  The second is correct.

Calculation 1:

$String_TkMPP =  (($Module_VMP * $Module_TkMPP_pct * $VOC_Hot_Delta) + $Module_VMP) * $String_Size

 

Calculation 2:

$String_TkMPP = $Module_VMP * $Module_TkMPP_pct

$String_TkMPP = $String_TkMPP * $VMP_Hot_Delta

$String_TkMPP = $String_TkMPP + $Module_VMP

$String_TkMPP = $String_TkMPP  *  $String_Size

 

Outcomes