Numeric Formatting in JavaScript
I'm using the following in a validation event
var MBn = (iSizeN / 1383.27)/ 1024;
The result is a digit with around 10 decimal places.
1) What do I need to do so that the result is only 2 decimal places?
2) How do I then convert the 2-decimal place number to a text string so that I can use it in a message? Note that I still need access to the MBn variable so the string variable would be MBs.
Thank you for the help.