I don't think one exists. You'll have to write one that loops through the number, but I made you a simple, short one that does it for you. It should work for numbers that are the same length.
function calculateDifference(number_1,number_2)
{
var difference = "";
for(var i = 0; i > (number_1.length-1); i++)
{
difference += (number_1.charAt(i) - number_2.charAt(i)).toString();
}
return difference;
}
Let me know if it works, I created it off the top of my head.
Also, if you can remember the name of this concept, that would be good. I've never had to use anything like this before.
HTH
-Snib
<><
http://www.snibworks.com
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)