lib/taxedo/tax.rb in taxedo-0.0.1 vs lib/taxedo/tax.rb in taxedo-0.0.2
- old
+ new
@@ -21,8 +21,8 @@
end
private
def calculate_amount
- ((@source_amount * @rate).round / 10000)
+ ((@source_amount * @rate).to_f / 10000).round
end
end