Title: Error due to division by zero
Last modified: September 19, 2024

---

# Error due to division by zero

 *  Resolved [stevesand](https://wordpress.org/support/users/stevesand/)
 * (@stevesand)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/error-do-to-division-by-zero/)
 * Hi, thank you for a great plugin, best one i used for currencies.
   My website 
   crashed today due to a division by zero. Have not seen this before, might be 
   related to an update?I dont use currency conversion by rate, i specify all prices
   per product in each currency so my rates are 0.In file classes/woocs.php line:
   5473 & 5476, Please add 0-support for:$markup_offer[“priceSpecification”][“price”]
   = number_format($markup_offer[“priceSpecification”][“price”] / **$rate,** $precision,‘.’,”);
   Suggestion:$currentRate = **$rate** > 0 ? $markup_offer[“priceSpecification”][“
   price”] / **$rate** : 0;number_format($currentRate**,** $precision, ‘.’, ”);
    -  This topic was modified 1 year, 8 months ago by [stevesand](https://wordpress.org/support/users/stevesand/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/error-do-to-division-by-zero/#post-18026579)
 * Hello
 * Than you for your cooperation.
 * I handed this to the developers

Viewing 1 replies (of 1 total)

The topic ‘Error due to division by zero’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-currency-switcher/assets/icon-256x256.png?rev
   =2844633)
 * [FOX - Currency Switcher Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-currency-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-currency-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-currency-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-currency-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-currency-switcher/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/error-do-to-division-by-zero/#post-18026579)
 * Status: resolved