Solved

Calculating Percentage Difference

Posted on 2007-03-21
2
6,495 Views
Last Modified: 2011-10-03
What is the easiest way to calculate the percentage increase between two numbers?

For example, if I have one number - 13.00, and another - 15.75, what is the easiest way to calculate the percentage increase?
0
Comment
Question by:marmaxx
  • 2
2 Comments
 
LVL 13

Expert Comment

by:Webstorm
ID: 18765819
Hi marmaxx,

the easiest way is :
   100.0 * secondValue / firstValue - 100.0;
0
 
LVL 13

Accepted Solution

by:
Webstorm earned 500 total points
ID: 18765829
For your example :
   100.0 * 15.75 / 13.00 - 100.0;
   = + 21,15 %
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Log4Net custom Appender not being fired. 5 74
which object should i use (efficiency) 5 45
Windows Media Player 2 11
Finally almost got it 5 15
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now