# Problem with numbers

**URL:** <https://discuss.elastic.co/t/problem-with-numbers/120799>\
**Category:** Kibana\
**Created:** [February 21, 2018, 9:36am UTC](https://discuss.elastic.co/t/problem-with-numbers/120799 "2018-02-21T09:36:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fred59](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@Fred59](https://discuss.elastic.co/u/Fred59)\
**Post date:** [February 21, 2018, 9:36am UTC](https://discuss.elastic.co/t/problem-with-numbers/120799/1 "2018-02-21T09:36:54Z")

</div>

Hello, I have a problem when I import data.

I have Kibana 5.6.3.  
in Management -\> index patterns -\> this field is correctl defined as a number with default format (i have also tested with a specific format 0,0.[000]

In my CSV file, I have a column with integer sums (5, 10, 20), and with decimals (5.99, 9.99, ...).

The problem is that Kibana does not show decimals, I just have 5, 10, 20, 9, ...  
The mapping is set to "integer". Does the CSV have to have a particular format for the numbers ?

```
                        "Amount":{
                          "type":"integer","index":"not_analyzed"
                          },  

```

Thank you !

---

<div class="post-metadata">

**Author:** ![Fred59](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@Fred59](https://discuss.elastic.co/u/Fred59)\
**Post date:** [February 21, 2018, 4:27pm UTC](https://discuss.elastic.co/t/problem-with-numbers/120799/2 "2018-02-21T16:27:04Z")

</div>

From Discover it's ok.

But From Visualize there is no decimal.

I dont understand why.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 21, 2018, 7:25pm UTC](https://discuss.elastic.co/t/problem-with-numbers/120799/3 "2018-02-21T19:25:26Z")

</div>

> [@Fred59](#):
>
> In my CSV file, I have a column with integer sums (5, 10, 20), and with decimals (5.99, 9.99, ...).

> [@Fred59](#):
>
> "type":"integer"

The field in the Elasticsearch mapping can only have 1 data type, so if you want to be able to work with decimals, the mapping should be one of the types that have higher precision than `integer` such as `double`, `float`, `half_float`, etc: [Numeric datatypes | Elasticsearch Reference [5.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/number.html)

The data in Discover shows the value from `_source` which is the original data that the document was indexed with. But the table visualization is an aggregation that shows the value as it is mapped.

---

<div class="post-metadata">

**Author:** ![Fred59](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@Fred59](https://discuss.elastic.co/u/Fred59)\
**Post date:** [February 22, 2018, 8:49am UTC](https://discuss.elastic.co/t/problem-with-numbers/120799/4 "2018-02-22T08:49:18Z")

</div>

Awsome ! It works !  
Thanks !

---

<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:** [March 22, 2018, 8:49am UTC](https://discuss.elastic.co/t/problem-with-numbers/120799/5 "2018-03-22T08:49:29Z")

</div>

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