Decimal Places in input box

Hi all,
I’m using some input boxes to get the value as well as to display the numeric values…Now after the calculations the value shown in input box is something like 0.2875362… but i want to limit that to two decimal places…how to do that…someone please help…
-gaurav