Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Can someone verify a possible new problem in NTL V7pr3

Expand Messages
  • hsavage
    ... and assigned it to the new variable. (I don t recall if adding zero in CALC was necessary.) ... expression] ... Joy, This may be the problem. ^$Calc(;0)$
    Message 1 of 4 , Apr 23, 2012
    • 0 Attachment
      On 4/10/2012 12:40 PM, joy8388608 wrote:
      > I'm sure this worked before V7pr3 (Win 7 64 bit)
      >
      > It asked for a value, rounded (formatted) it to two decimal places
      and assigned it to the new variable. (I don't recall if adding zero
      in CALC was necessary.)
      >
      > ^!Set %NewNumShares%=^$Calc(^?{Number of shares} + 0;2)$
      > ^!Prompt NewNumShares is ^%NewNumShares%
      >
      > When I run it now, the prompt gives NewNumShares is [error in
      expression]
      >
      > Joy

      Joy,

      This may be the problem. ^$Calc(;0)$ doesn't like superfluous spaces
      or dashes(minuses) in the calculation, either eliminate them or
      replace with underscores.

      ----------------
      H="test calc"
      ;—•····
      ^!SetDebug 1
      ;—•----
      ;—• ^$Calc(;0)$ doesn't like superfluous spaces
      ;—• or dashes(minuses) in the calculation
      ;—•
      ^!Set %Numberofshares%=11
      ^!Set %Number_of_shares%=11
      ;—• cal
      ;—•^!Set %NewNumShares%=^$Calc(11+0;3)$
      ^!Set %NewNumShares%=^$Calc(^%Numberofshares%+0;3)$
      ^!Set %NewNumShares%=^$Calc(^%Number_of_shares%+0;3)$
      ^!Prompt NewNumShares is ^%NewNumShares%
      ----------------

      ···············································
      ¤• JD#...115 - ¤• SL...913 - 12.04.24~00.13.39

      • Mothers With Teenagers
      • Know Why Animals Eat Their Young.

      € hrs € hsavage € pobox € com
    Your message has been successfully submitted and would be delivered to recipients shortly.