         else
           doc
 
+    Form.setUpFields = (template) ->
+      template = getTemplate(template)
+      schemaInputs = Form.getSchemaInputs(template)
+      _.each schemaInputs, (input, key) ->
+        # Round float fields to 2 decimal places.
+        $input = $(input.node)
+        field = input.field
+        if field.type == Number && field.decimal && formArgs.roundFloats != false
+          decimals = field.decimals ? 2
+          value = Forms.getInputValue($input)
+          value = parseFloat(value).toFixed(2)
+          Forms.setInputValue($input, value)
+
     Form.getFormTitle = ->
       collectionName = Collections.getTitle(Form.getCollection())
       singularName = Form.getSingularName()

      _.each values, (value, key) ->
        $input = Forms.getFieldElement(key, $form)
        Forms.setInputValue($input, value)

    Form.getBulkValues = (template, docs) ->
      values = {}

          # are.
          if Forms.setInputValue($input, value)
            mergedValues[key] = value
      Form.setUpFields(template)
      mergedValues

    Form.getInputValues = (template) ->
