How to format string in jquery ?

How to format string in jquery ?

Hi,

How to format a string using jqeury ?
I am doing some calcuations in jquery function but the result comes like:

107.40699999999998

I want it to show like:

107.40 or 107.41

How to do this ? Please help.

Thanks.