I'm having a mental block here, and algebra not really being my thing, can you tell me how to re-write the JavaScript code below to derive the variable, c, in terms of a and b?:
My question is: given a target RGB color, what is the formula to recolor black (#000) into that color using only CSS filters?
For an answer to be accepted, it would need to provide a function (in any language) that would …
I have the following JavaScript syntax:
var discount = Math.round(100 - (price / listprice) * 100);
This rounds up to the whole number. How can I return the result with two decimal places?