title: Backbone edit model
body: <p>I tried to find a simple solution for my problem, but I couldn't.
  So I have model like this:</p>
  
  <pre><code>App.Models.Item = Backbone.Model.extend({
      idAttribute: "ItemID",
      defaults:
              {
                  ItemID: 1,
                  TypeID: 1,
                  Name: "",
                  Price: 1.00,
                  Image: "",
              },
      urlRoot: 'api/items'
  });
  </code></pre>
  
  <p>in my chtml file I have this:</p>
  
  <pre><code>&lt;div class='wrapper'&gt;  
      &lt;a href="#" data-id ="&lt;%= ItemID %&gt;"&gt;&lt;img src="data:image/png;base64,&lt;%= Image %&gt;" class="image"/&gt;&lt;/a&gt;
      &lt;div class ="price"&gt;
          &lt;%= Price %&gt;
      &lt;/div&gt;
      &lt;div class='description'&gt;  
          &lt;p class='description_content'&gt;&lt;%= Name %&gt;&lt;/p&gt;  
      &lt;/div&gt;  
  &lt;/div&gt;
  </code></pre>
  
  <p>I just want to edit each "Price" field to have two decimal places. Something like Math.round... but I don't now how to implement this script with the Backbone model. Thanks.</p>