Announcement

Collapse
No announcement yet.

Percentages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Percentages

    On a calculator how does the percentage button work, I am stumped as I cannot find a math calculation for percentages. Any pointers appreciated

  • #2
    I believe that there is no simple answer to your question. My TI-66 doesn't even have a percentage button.

    When you have calculator with a percentage button, it will attempt to guess what you want. For example, if you enter 200 + 20%, it may return 240. However, entering 20% + 200 possibly does not return the same result, even when the order of the elements in a addition doesn't matter (a + b) = (b + a). So, when you press the % key on such a calculator, it will attempt to use the current number as a percentage of the previous value entered. If there is no previous value, you may get undesired results.

    Ulrich

    Comment


    • #3
      Thanks Ulrich, I may leave this button alone lol.

      Comment


      • #4
        Having problems Coding a "00" button which supposedly gives 2 0s at once, i tried the code :-
        Num = Input.GetText("NumInput");
        Input.SetText("NumInput", Num..00);
        this only puts 1 zero not 2

        Comment


        • #5
          Originally posted by John31 View Post
          Having problems Coding a "00" button which supposedly gives 2 0s at once, i tried the code :-
          Num = Input.GetText("NumInput");
          Input.SetText("NumInput", Num..00);
          this only puts 1 zero not 2
          SetText want's a string so you should set it like to Num.."00", and later when you need to use the number in maths then just use the tonumber(GETRETURN)
          Plugins or Sources MokoX
          BunnyHop Here

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎