Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
--- Checkout.class.php (saved version) +++ (current document) @@ -59,13 +59,13 @@ protected function calculate_price($amount) { $base_price = 39; - return bcmul($amount, $base_price); // See Arbitrary Precision Mathematics Functions: http://www.php.net/manual/en/ref.bc.php + return $amount * $base_price; } protected function calculate_vat($price) { $base_vat = 0.19; - return bcmul($amount, $base_vat); + return $amount * $base_vat; }
From the Design Piracy series on my blog: