4000 - 7500 = - 3500 ?
I have a small calculating table that sums up items and may have a negative total.
http://www.literacyexchange.net/cou...ia_b_budget.swf
But I would like to have a negative sign, brackets or perhaps a change in color to denote a negative number has been reached(deficit).
Thanks for help
Alvaro
This is the code for the table:
function onCalculate() {
bud_one = Number(b1);
bud_two = Number(b2);
bud_three = Number(b3);
bud_four = Number(b4);
bud_five = 3000;
bud_six = Number(b6);
bud_seven = Number(b7);
bud_eight = Number(b8);
bud_nine = Number(b9);
budget_rfunds = -(25000-bud_one - bud_two - bud_three - bud_four - bud_five - bud_six - bud_seven - bud_eight - bud_nine);
total = bud_one + bud_two + bud_three + bud_four + bud_five + bud_six +bud_seven + bud_eight + bud_nine;
}