total=number(input1)+number(input2);
final=total*.5;
final=Math.round(final*100)/100;
this last line will round it to 2 digits.
for example, if final is 56.7891
final*100=5678.91
rounded=5679
divided by 100=56.79
|
Results 1 to 7 of 7
Thread: Simple Math?Threaded View
|
Click Here to Expand Forum to Full Width |