Solved

Calculating Percentage Difference

Posted on 2007-03-21
2
6,537 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Release Dynamically Allocated Memory in C# 3 45
linq, c# 8 31
Updating a single record in forEach using C#/Entity 7 23
Visual Studio 2015 auto inserted code 12 65
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 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