Apologies for the inconvenience, but I could really use some assistance.
I attempted to convert a string into a decimal and was successful, although I encountered an issue:
number = document.getElementById("totalcost").innerHTML; //String that represents a decimal
number2 = prodCost; //Also a string representing a decimal
alert(parseFloat(number)); //Displays correctly (e.g. 88,9 will display as 88.9)
alert(parseFloat(number2)); //Works fine as well
alert(parseFloat(number) - parseFloat(number2)); //Encountering issues here :(
//When number=88,9 and number2=17,77, the result is 71 instead of 71.13
Oh dear, my sincere apologies for the oversight. Thank you all so much! I've been at this non-stop for nine hours now...I apologize again, thank you!