| Author |
get the resultant value upto 2 decimal places.
|
JayaSiji Gopal
Ranch Hand
Joined: Sep 27, 2004
Posts: 303
|
|
Hi, In my Javascript function, I have somethins like this: This would return the size of the file in bytes. (20064 for eg) I want to convert the size too MB and correct upto 2 decimal palces. How can I do this?
|
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
|
var result = num.toFixed(2);
|
 |
 |
|
|
subject: get the resultant value upto 2 decimal places.
|
|
|