# Nachkommastallen in der API

**URL:** <https://forum.shopware.com/t/nachkommastallen-in-der-api/94564>\
**Category:** Shopware 6 (German)\
**Created:** [26. Mai 2022 um 06:20 UTC](https://forum.shopware.com/t/nachkommastallen-in-der-api/94564 "2022-05-26T06:20:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.zaugg](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/k.zaugg/32/15988_2.png) [@k.zaugg](https://forum.shopware.com/u/k.zaugg)\
**Post date:** [26. Mai 2022 um 06:20 UTC](https://forum.shopware.com/t/nachkommastallen-in-der-api/94564/1 "2022-05-26T06:20:14Z")

</div>

Hallo,  
bei der API-Abfrage (SW 6.4.10.1) werden extrem viele Nachkommastellen ausgegeben, z.B.:  
`..."price":{"netPrice":382.69999999999998863131622783839702606201171875,"totalPrice":412.16000000000002501110429875552654266357421875,...`  
Wie kann das geändert werden?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [26. Mai 2022 um 14:17 UTC](https://forum.shopware.com/t/nachkommastallen-in-der-api/94564/2 "2022-05-26T14:17:13Z")

</div>

Die Daten werden als Float gespeichert. Genau das bekommst du zurück. Selber runden…

---

<div class="post-metadata">

**Author:** ![k.zaugg](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/k.zaugg/32/15988_2.png) [@k.zaugg](https://forum.shopware.com/u/k.zaugg)\
**Post date:** [30. Mai 2022 um 07:08 UTC](https://forum.shopware.com/t/nachkommastallen-in-der-api/94564/3 "2022-05-30T07:08:34Z")

</div>

Ok, danke, dann schaue ich da mal.
