2:30 am, November 30, 2022

calculate a percentage difference based on two numbers

This calculation takes two numbers, the Total Value and the Difference from the Total Value and returns the Difference and the Difference as a Percentage.

I still cant remember why i made this function, but the original version of this seems to be popular.

So you can add the 1st value and then the total value and it will calculate the difference as a percentage. 

To get some random numbers just reload this page. 

Reload Page


The difference between the total of 546377 and 42200 in percentage is 92.276395236256%
calculate a percentage difference
+ =

No Items Found.

Add Comment
Type in a Nick Name here
IP Address Lookup Geo Location
generate date time id stamp
restyle and shorten number
Return a file extention from a string
create a unique id from a html string
calculate a percentage difference based on two numbers
Generate a Random Username - Version 1
Other Items in number calculations
Search Utilities
Search Utilities by entering your search text above.

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕


🪦 2000 - 16 Oct 2022 - Boots
Random Quote

'Dawnie' used to say, "It's really quite simple: Be kind, and the rest takes care of itself. Never do anything that's not kind".

Dawn Atherton
Random CSS Property


When defining custom counter styles, the range descriptor lets the author specify a range of counter values over which the style is applied. If a counter value is outside the specified range, then the fallback style will be used to construct the representation of that marker.
range (@counter-style) css reference