AnsweredAssumed Answered

Why does this evaluate the way it does?

Question asked by Kirk_1 on Sep 16, 2013
Latest reply on Sep 16, 2013 by philmodjunk

Title

Why does this evaluate the way it does?

Post

     $discount_pct_cust = 70.3

     $Toplinenumber1 = 257.22

     $ fsc = 28

     Let ([

                     $~num =  ( 100 - $discount_pct_cust ) * ( $toplinenumber1 / 100 )  ;

                     $~fsc = ( $~num * $fsc) / 100 ;

                     $~newRate = Round ( $~num + $~fsc ; 2 )

     ] ;

                     $~newrate

     )

     This evaluates to 329.30. But if i do it on my calculator i get 97.76 which is what im looking for...

Outcomes