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

Re: Clip problem with calculation and info

Expand Messages
  • Flo
    ... when I ... ^!Set %Weight%=^?[Weight in kg]; %Size%=^?[Size in cm] ^!Set %BMI%=^$Calc(^%Weight%/(^%Size%/100)^2)$ ^!Info [L]Your Body Mass Index is
    Message 1 of 5 , Feb 3, 2009
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, "B.P. de Vries" <bauke@...> wrote:
      >
      > Hello,
      >
      > I have a problem getting more information in the resulting window
      when I
      > run the following clip:
      >
      > ^!CALC [^?[Gewicht in kilo's]/(^?[Lengte in centimeters]/100)^2]=BMI
      >
      > This gives a little window with "BMI = xx,xxxx"
      >
      > I would like to have some explanation in the same window, like this:
      >
      > ============
      > BMI = xx,xxx
      >
      > Under 18 is underweight
      > 18 to 25 is normal weight
      > etc
      > ============
      >
      > But I cannot find how to do this.
      >
      > Thanks in advance for any help
      >
      > Bauke

      ^!Set %Weight%=^?[Weight in kg]; %Size%=^?[Size in cm]
      ^!Set %BMI%=^$Calc(^%Weight%/(^%Size%/100)^2)$
      ^!Info [L]Your Body Mass Index is ^%BMI%.^P^P- Under 18 is
      underweight.^P- 18 to 25 is normal weight.^P- More than 25 is
      overweight.

      Regards,
      Flo
       
    • B.P. de Vries
      Thanks a lot. It works perfectly. All I had to do was inserting a ^. Must have been a typo, but I learned again from it. Thanks! Met vriendelijke groet, Bauke
      Message 2 of 5 , Feb 4, 2009
      • 0 Attachment
        Thanks a lot. It works perfectly. All I had to do was inserting a ^.
        Must have been a typo, but I learned again from it. Thanks!

        Met vriendelijke groet,

        Bauke P. de Vries.



        Flo schreef:
        > --- In ntb-clips@yahoogroups.com, "B.P. de Vries" <bauke@...> wrote:
        >
        >> Hello,
        >>
        >> I have a problem getting more information in the resulting window
        >>
        > when I
        >
        >> run the following clip:
        >>
        >> ^!CALC [^?[Gewicht in kilo's]/(^?[Lengte in centimeters]/100)^2]=BMI
        >>
        >> This gives a little window with "BMI = xx,xxxx"
        >>
        >> I would like to have some explanation in the same window, like this:
        >>
        >> ============
        >> BMI = xx,xxx
        >>
        >> Under 18 is underweight
        >> 18 to 25 is normal weight
        >> etc
        >> ============
        >>
        >> But I cannot find how to do this.
        >>
        >> Thanks in advance for any help
        >>
        >> Bauke
        >>
        >
        > ^!Set %Weight%=^?[Weight in kg]; %Size%=^?[Size in cm]
        > ^!Set %BMI%=^$Calc(^%Weight%/(^%Size%/100)^2)$
        > ^!Info [L]Your Body Mass Index is ^%BMI%.^P^P- Under 18 is
        > underweight.^P- 18 to 25 is normal weight.^P- More than 25 is
        > overweight.
        >
        > Regards,
        > Flo
        >
        >
        >
        >
        > ------------------------------------
        >
        > Fookes Software: http://www.fookes.com/
        > NoteTab website: http://www.notetab.com/
        > NoteTab Discussion Lists: http://www.notetab.com/groups.php
        >
        > ***
        > Yahoo! Groups Links
        >
        >
        >
        >
        > __________ Information from ESET NOD32 Antivirus, version of virus signature database 3823 (20090203) __________
        >
        > The message was checked by ESET NOD32 Antivirus.
        >
        > http://www.eset.com
        >
        >
        >
        >
        >


        [Non-text portions of this message have been removed]
      • Michael Frascinella
        Bauke, You can include extra information by putting the calculation in an INFO command. Here is one that I created a few years ago. It converts frequency to
        Message 3 of 5 , Feb 5, 2009
        • 0 Attachment
          Bauke,

          You can include extra information by putting the calculation in an INFO
          command. Here is one that I created a few years ago. It converts
          frequency to wavelength.

          ^!Info ^?[Enter frequency (scientific notation, e.g., 1.43e9)]
          cycles/sec = ^$Calc(2.9979245800e10/^?[Enter frequency (scientific
          notation, e.g., 1.43e9)];3)$ cm^pDivide the answer by 100 to get meters.

          Yours,

          Michael F
          MAFware Solutions
          http://www.mafware.com
          ******************
          Never Forget
          September 11, 2001
          ******************



          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.