HilmiZr commited on
Commit
92db7c4
·
1 Parent(s): a78ccca

updated: USD formatting

Browse files
Files changed (1) hide show
  1. templates/index.html +1 -1
templates/index.html CHANGED
@@ -134,7 +134,7 @@
134
  $('#respBmi').html("<strong>BMI:</strong> " + response.bmi);
135
  $('#respChildren').html("<strong>Children:</strong> " + response.children);
136
  $('#respRegion').html("<strong>Region:</strong> " + response.region);
137
- $('#insurance_cost').html(response.insurance_cost);
138
  console.log(response);
139
  },
140
  error: function (error) {
 
134
  $('#respBmi').html("<strong>BMI:</strong> " + response.bmi);
135
  $('#respChildren').html("<strong>Children:</strong> " + response.children);
136
  $('#respRegion').html("<strong>Region:</strong> " + response.region);
137
+ $('#insurance_cost').html(parseFloat(response.insurance_cost).toFixed(2) + ' USD');
138
  console.log(response);
139
  },
140
  error: function (error) {