3 Replies Latest reply on Feb 23, 2012 9:32 AM by philmodjunk

    Different results with seemingly identical calcs

    lannycook

      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