# Remove decimals in currency

**URL:** https://forum.shopware.com/t/remove-decimals-in-currency/26130
**Category:** Shopware 3.5
**Tags:** general
**Created:** [9. April 2015 um 06:01 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130 "2015-04-09T06:01:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![DVe0Wma](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DVe0Wma](https://forum.shopware.com/u/DVe0Wma)
#### Post date: [9. April 2015 um 06:01 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130/1 "2015-04-09T06:01:39Z")

</div>

Hello, I want remove the decimals from the currency. Example: From $59.00 to $59 Thank you!

---

<div class="post-metadata">

### Author: ![tiagojsag](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tiagojsag/32/53_2.png) [@tiagojsag](https://forum.shopware.com/u/tiagojsag)
#### Post date: [14. April 2015 um 10:11 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130/2 "2015-04-14T10:11:10Z")

</div>

Hi, Currently all currencies are used with a fixed 2 decimal configuration, and there is no option to change this behaviour. greetings

---

<div class="post-metadata">

### Author: ![DVe0Wma](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DVe0Wma](https://forum.shopware.com/u/DVe0Wma)
#### Post date: [14. April 2015 um 18:21 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130/3 "2015-04-14T18:21:15Z")

</div>

Hi, Tiago Garcia Thank you for the answer.

---

<div class="post-metadata">

### Author: ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)
#### Post date: [14. April 2015 um 18:26 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130/4 "2015-04-14T18:26:33Z")

</div>

You could solve this problem if you remove the letters behind the . PHP preg\_replace does the job

---

<div class="post-metadata">

### Author: ![DVe0Wma](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DVe0Wma](https://forum.shopware.com/u/DVe0Wma)
#### Post date: [14. April 2015 um 18:47 UTC](https://forum.shopware.com/t/remove-decimals-in-currency/26130/5 "2015-04-14T18:47:39Z")

</div>

This works too. ` // [theme\_name]/frontend/detail/data.tpl {number\_format($sArticle.price, 0)} `
