# Float numbers with comma as a decimal

**URL:** <https://discuss.elastic.co/t/float-numbers-with-comma-as-a-decimal/181619>\
**Category:** Elasticsearch\
**Created:** [May 17, 2019, 2:59pm UTC](https://discuss.elastic.co/t/float-numbers-with-comma-as-a-decimal/181619 "2019-05-17T14:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![humartinez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/humartinez/32/46395_2.png) [@humartinez](https://discuss.elastic.co/u/humartinez)\
**Post date:** [May 17, 2019, 2:59pm UTC](https://discuss.elastic.co/t/float-numbers-with-comma-as-a-decimal/181619/1 "2019-05-17T14:59:03Z")

</div>

Hi there,  
I've got an issue with elastic while ingesting some date.

{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"failed to parse field [costo\_hora\_empleado] of type [integer]"}],"type":"mapper\_parsing\_exception","reason":"failed to parse field [cost] of type [integer]","caused\_by":{"type":"number\_format\_exception","reason":"For input string: "622,5""}},"status":400}

I guess elastic is expecting a number like 622.5 instead of 622,5. Is there a posibility to change the float format to accept numbers with comma as a decimal indicator?

Best regards

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 17, 2019, 8:58pm UTC](https://discuss.elastic.co/t/float-numbers-with-comma-as-a-decimal/181619/2 "2019-05-17T20:58:34Z")

</div>

I think the simplest solution here might be to replace these commas with dots using the [ingest node](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/gsub-processor.html).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 14, 2019, 8:58pm UTC](https://discuss.elastic.co/t/float-numbers-with-comma-as-a-decimal/181619/3 "2019-06-14T20:58:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
