Decimal places

hi,

This might sound stupid…

Does anybody kknow how to restrict the decimal places values in a number?

for example… if iam doing something like:

var n;
n=100/3;
input.text=n;

In the input textfield i want only 33.33 to appear rather than 33.3333…is there any way to do this, rather than restricting the size of the textfield??

pls help!!! :frowning: