I am developing a financial calculator and I want to show brackets around values like excel for negative numbers, I am already doing custom attribute actual val for decimal values and showing round values, so it is tough to manage another attribute for this or apply if check on every input and result, because there are thousands of calcualations.
for example.
var value = -20000 // actual value
so if I set value for input
$("#input").val(value);
I want to show
(20000)
but when I get value so don't need brackets in $("#input").val(), need same result