# Problem Metric Chart : decimal doesnt match field format

**URL:** <https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395>\
**Category:** Kibana\
**Created:** [November 28, 2017, 1:14pm UTC](https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395 "2017-11-28T13:14:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ade05fr](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ade05fr](https://discuss.elastic.co/u/ade05fr)\
**Post date:** [November 28, 2017, 1:14pm UTC](https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395/1 "2017-11-28T13:14:11Z")

</div>

Hi  
im using Elastic - Kibana 5.5.2 and i have encountered a problem to display number with metric chart.  
the field that i want to display in input is a number  
Example json file  
" space\_free\_net\_for\_data": 2427.30  
this field in input is with 2 decimals  
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]  
bue when i use this field on a metric chart with a max aggregation the number displayed is "reevaluated" with 10 decimals !!  
2427.2900390625  
what is wrong ?  
if this is a bug how can i enforce to display on this metric only 2 decimals

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [November 28, 2017, 4:55pm UTC](https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395/2 "2017-11-28T16:55:44Z")

</div>

> [@ade05fr](#):
>
> what is wrong ?

It sounds like a Javascript floating point issue. JS is pretty bad at dealing with numbers...

This sounds like a bug with the metric vis. I encourage you to open an issue on the [Kibana issue tracker](https://github.com/elastic/kibana/issues).

---

<div class="post-metadata">

**Author:** ![ade05fr](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ade05fr](https://discuss.elastic.co/u/ade05fr)\
**Post date:** [November 29, 2017, 6:38am UTC](https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395/3 "2017-11-29T06:38:50Z")

</div>

Ok thank you for your answer  
anyway i will open an issue for this.  
But is there a way to "force" to change the format ?

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:** [December 27, 2017, 6:39am UTC](https://discuss.elastic.co/t/problem-metric-chart-decimal-doesnt-match-field-format/109395/4 "2017-12-27T06:39:17Z")

</div>

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