--- coupon.module	2006-09-06 15:18:46.000000000 -0700
+++ coupon.module	2006-09-06 15:19:09.000000000 -0700
@@ -511,7 +511,7 @@ function coupon_admin_create_submit($for
 
   for ($i=0; $i<$form_values['coupon_count'];$i++) {
     $coupon['coupon'] = _coupon_create();
-    db_query("INSERT INTO {ec_coupon} (coupon, operator, operand, created) VALUES ('%s', '%s', %d, %d)", $coupon['coupon'], $coupon['operator'], $coupon['operand'], $coupon['created']);
+    db_query("INSERT INTO {ec_coupon} (coupon, operator, operand, created) VALUES ('%s', '%s', %f, %d)", $coupon['coupon'], $coupon['operator'], $coupon['operand'], $coupon['created']);
   }
 
   return "admin/store/coupon/{$coupon['created']}/{$form_values['coupon_output']}";
