[Skip to main content](#vessel-content)

#   I don't want the system rounds up decimals for US currency rate field

##

- **[proton5](/forum/user/41183-proton5 "View proton5's Profile")**
- [![proton5's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41183-proton5 "View proton5's Profile") Topic Author
- [ Offline](/forum/user/41183-proton5)

Less More

- Posts: 10
- Thank you received: 0
-
-

9 years 8 months ago -  9 years 8 months ago [\#261231](#261231) by [proton5](/forum/user/41183-proton5 "View proton5's Profile")  *[I don't want the system rounds up decimals for US currency rate field](/forum/31-development/888645-i-dont-want-the-system-rounds-up-decimals-for-us-currency-rate-field#261231 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.28 -- Browser(s) name and version -- : CHROME 56.0.2924.87  Hi,  If I enter 0,00029411178 in the US currency rate field (see attach 1) and click on save, the systema automatically rounds up the rate to 0.00029 (5 decimal positions). See attach 2  I wan to keep all the 11 decimal positions to keep the original number unchanged (0,00029411178).  Please, could you help me?  Regards.")* was created by *[proton5](/forum/user/41183-proton5 "View proton5's Profile")*

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.28
-- Browser(s) name and version -- : CHROME 56.0.2924.87

Hi,

If I enter 0,00029411178 in the US currency rate field (see attach 1) and click on save, the systema automatically rounds up the rate to 0.00029 (5 decimal positions). See attach 2

I wan to keep all the 11 decimal positions to keep the original number unchanged (0,00029411178).

Please, could you help me?

Regards.

- [ ![1&#95;2017-02-02.jpg](/forum/attachment/36042) ](/forum/attachment/36042 "1&#95;2017-02-02.jpg") [ ](/forum/attachment/36042?download=1 "1&#95;2017-02-02.jpg")
- [ ![2&#95;2017-02-02.jpg](/forum/attachment/36043) ](/forum/attachment/36043 "2&#95;2017-02-02.jpg") [ ](/forum/attachment/36043?download=1 "2&#95;2017-02-02.jpg")

Last edit: 9 years 8 months ago by [proton5](/forum/user/41183-proton5 "View proton5's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODY0NS1pLWRvbnQtd2FudC10aGUtc3lzdGVtLXJvdW5kcy11cC1kZWNpbWFscy1mb3ItdXMtY3VycmVuY3ktcmF0ZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#261233](#261233) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[I don't want the system rounds up decimals for US currency rate field](/forum/31-development/888645-i-dont-want-the-system-rounds-up-decimals-for-us-currency-rate-field#261233 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.28 -- Browser(s) name and version -- : CHROME 56.0.2924.87  Hi,  If I enter 0,00029411178 in the US currency rate field (see attach 1) and click on save, the systema automatically rounds up the rate to 0.00029 (5 decimal positions). See attach 2  I wan to keep all the 11 decimal positions to keep the original number unchanged (0,00029411178).  Please, could you help me?  Regards.")*

Hi,

The float elements in the database are stored with the format " DECIMAL(12,5) " which mean that only five decimals are stored in the database.
You can see to modify it directly in your table structure if you want more precision ; but by default in the table definition, it is 5.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4ODY0NS1pLWRvbnQtd2FudC10aGUtc3lzdGVtLXJvdW5kcy11cC1kZWNpbWFscy1mb3ItdXMtY3VycmVuY3ktcmF0ZS1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.154 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
