Discount not calculated correctly in some cases
Created by: sdragnev
If the original price is a float, the discount is not calculated correctly. cividiscount.php:392 casts the original price as an integer:
$originalAmount = (integer) $originalAmounts[$fee_id]['options'][$option_id]['amount'];
Not sure why.