I suggest you ...

Calculating the Percentage is not correct.... 10-10% should give 1

Calculating the Percentage is not correct.... 10-10% should give 1

5 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Sumit shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

3 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Borek Hanzl commented  ·   ·  Flag as inappropriate

    the usage of % operator is counter-intuitive but here is how it works: A%B = C. This usage means "C is B% of A" so if you use 10% alone it makes no sense and the result is undefined. if you want to make equation "substract 10% from 10", then use "10%(100-10)". Anyway i dont see why the result should be 1 instead of 9? Can you explain what would "10-10%" mean to you?

  • Anonymous commented  ·   ·  Flag as inappropriate

    10% of ten is 1, so taking 10% off of 10 leaves you with nine. Please do your maths. If you want x percent of a number, y, divide y by 100 and times it by x.

    Hope that helps :D

Feedback and Knowledge Base