the % button on a calculator

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

the % button on a calculator

Post by s.dot »

This may be the dumbest question I've ever asked, but what does it do? 8O

5 / 3 % = .15
6 / 3 % = .18
anything % = 0

What's the equation taking place?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Chalks
Forum Contributor
Posts: 447
Joined: Thu Jul 12, 2007 7:55 am
Location: Indiana

Post by Chalks »

I've often wondered this myself....


EDIT:
actually from the two examples you posted:
5 / 3 % = .15
6 / 3 % = .18

the result is (x * y) / 100
kalebaustin
Forum Newbie
Posts: 12
Joined: Mon Nov 19, 2007 11:28 am

Post by kalebaustin »

Chalks wrote:the result is (x * y) / 100
Yeah just turns the answer to a percentage.

How useful eh?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I'm a little bit confused on it's usage. Is it only applicable when a divide operation is performed?

8/8 % = .64 (8 * 8 = 64 /100 = .64) got it
8*8 % = .64 ... I just multiplied there, but it's the same as the divide above?

and it seems like 8/8 in percent would be 1 (100%). So it can't be the percent.

And how come 8% = 0? (is it (8*0)/100 ?)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

oh, i get it.

I think it's X * (Y/100) = Z

So if you needed to find 3 percent of 30, you'd go 30*3%
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I always thought it was the same as the modulus operator. :P
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Ok, now I finally got it right. As far as I know.

When you do an operation like 4*3%, when you press the % button, what shows up in the display is X(the second number) percent of Y(the first number).

so 3% of 4 is .12, which then when you hit =, the following equation takes place 4*.12 = .48

So the following equations are equal and true

4*3% = .48
4*.12 = .48

:) I spent quite a while confusing myself on something so simple.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Scrumpy.Gums
Forum Commoner
Posts: 71
Joined: Thu Aug 30, 2007 2:57 pm
Location: Bristol, UK

Post by Scrumpy.Gums »

How confusing!

When I type 4*3% in my calculator I get 0.12.... :?

So, mine does something sensible....

3% = 0.03

4*3% = 4*0.03 = 0.12

:lol:
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Scrumpy.Gums wrote:How confusing!

When I type 4*3% in my calculator I get 0.12.... :?

So, mine does something sensible....

3% = 0.03

4*3% = 4*0.03 = 0.12

:lol:
Haha. Yes, 4*3% will display 0.12. (since 3% of 4 = .12). Then you hit the equal (=) button, and it gives you .48. You have to hit the equal because you never finished your equation.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

My version :)

Code: Select all

X [+-] Y % == X [+-] (Y/100)*X
X [*/] Y % == X [*/] (Y/100)
It also performs the equal button functionality once.

Hitting the equal button has nothing to do with percentage operation. It will do its default function:

Code: Select all

X oper Y = (Z1)
= (Z1 oper Y = Z2)
= (Z2 oper Y = Z3)
= (Z3 oper Y = Z4)
= etc.
i.e. hitting equal sign will evulate the last operation with the last operand to the last result.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply