# Latitude/Longitude values - zero's get removed

**URL:** <https://discuss.elastic.co/t/latitude-longitude-values-zeros-get-removed/230789>\
**Category:** Logstash\
**Created:** [May 2, 2020, 4:05am UTC](https://discuss.elastic.co/t/latitude-longitude-values-zeros-get-removed/230789 "2020-05-02T04:05:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sketchy](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sketchy](https://discuss.elastic.co/u/Sketchy)\
**Post date:** [May 2, 2020, 4:05am UTC](https://discuss.elastic.co/t/latitude-longitude-values-zeros-get-removed/230789/1 "2020-05-02T04:05:29Z")

</div>

I am recieving json that contains Latitude and Longitude, in the message they look like this:

`"Latitude": -37.000000, "Longitude": 145.000000`

In the output they look like this:

`"Latitude" => -37.0, "Longitude" => 145.0`

Why are the trailling zero's getting removed?

So far its a very simple pipeline without any filters but I would expect these lat/long values to look the same as they do in the message.

```auto
input {
   tcp {
    port => 6001
    type => syslog
    codec => json
  }
}

filter {
}

output {
  stdout { codec => rubydebug }
 
}

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 2, 2020, 12:42pm UTC](https://discuss.elastic.co/t/latitude-longitude-values-zeros-get-removed/230789/2 "2020-05-02T12:42:49Z")

</div>

> [@Sketchy](#):
>
> Why are the trailling zero's getting removed?

What output are you talking about? If elasticsearch is indexing it as a float I would expect the presentation layer to trim trailing zeroes.

---

<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:** [May 30, 2020, 12:42pm UTC](https://discuss.elastic.co/t/latitude-longitude-values-zeros-get-removed/230789/3 "2020-05-30T12:42:52Z")

</div>

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