Graphic slider tool: Output to DOM element.

a + b =

a

b




function add(a, b, precision) { var x = Math.pow(10, precision || 2); return (Math.round(a * x) + Math.round(b * x)) / x; } return add(a, b, 5);