diff --git a/modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc b/modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc
index e6b0d70..b83ac1e 100644
--- a/modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc
+++ b/modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc
@@ -42,11 +42,10 @@ class commerce_line_item_handler_field_edit_quantity extends views_handler_field
     foreach ($this->view->result as $row_id => $row) {
       $line_item_id = $this->get_value($row, 'line_item_id');
       $quantity = $this->get_value($row, 'quantity');
-
       $form[$this->options['id']][$row_id] = array(
         '#type' => 'textfield',
-        '#datatype' => 'integer',
-        '#default_value' => round($quantity),
+        '#datatype' => !$this->options['decimal_enable'] ? 'integer' : 'decimal',
+        '#default_value' => !$this->options['decimal_enable'] ? round($quantity) : $quantity,
         '#size' => 4,
         '#maxlength' => max(4, strlen($quantity)),
         '#line_item_id' => $line_item_id,
@@ -96,4 +95,20 @@ class commerce_line_item_handler_field_edit_quantity extends views_handler_field
       }
     }
   }
+  function option_definition() {
+    $options = parent::option_definition();
+    $options['decimal_enable'] = array(
+      'default' => FALSE,
+      'bool' => TRUE,
+    );
+    return $options;
+  } 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    $form['decimal_enable'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Allow decimal values'),
+      '#default_value' => $this->options['decimal_enable'], 
+    );
+  }
 }
