pell
Oct 2, 2008, 11:08 AM
// Get Input Variables
for (var p in input_data) {
input_data[p]=parseFloat($('#'+p).val());
}
// Set Constants
// to be done
// Calculate Output Variables
var output_data = {};
//Set Output Variables
for (var p in output_data) {
$('#'+p).html(Math.round(output_data[p]));
Here are the parts of the script that output a figure with no decimal points. How do I get it to show 2 decimal points? Thanks so much, am NOT a programmer.
for (var p in input_data) {
input_data[p]=parseFloat($('#'+p).val());
}
// Set Constants
// to be done
// Calculate Output Variables
var output_data = {};
//Set Output Variables
for (var p in output_data) {
$('#'+p).html(Math.round(output_data[p]));
Here are the parts of the script that output a figure with no decimal points. How do I get it to show 2 decimal points? Thanks so much, am NOT a programmer.