Re:How does the calculator percent key work? (2008)
by userbinator on Wednesday April 29, 2015 @07:05AM
(#9457439)
Also, in terms of this register machine the percent key performs the operation I = R * I /100, and modifying I causes the display to show the new value of I just like the article mentions:
When the user enters a value, an operator, a second value, and then the percent key, the first two values are multiplied and the product divided by 100, and that result replaces the second value in the ongoing computation.
If you watch the display as you go through this exercise, you will even see the number 3.6 appear in the display once you press the % key. The percentage is calculated and replaces the original value in the ongoing computation.
When the user enters a value, an operator, a second value, and then the percent key, the first two values are multiplied and the product divided by 100, and that result replaces the second value in the ongoing computation.
If you watch the display as you go through this exercise, you will even see the number 3.6 appear in the display once you press the % key. The percentage is calculated and replaces the original value in the ongoing computation.