# How to prevent logstash output float in scientific notation

**URL:** https://discuss.elastic.co/t/how-to-prevent-logstash-output-float-in-scientific-notation/37960
**Category:** Logstash
**Created:** [December 25, 2015, 1:45am UTC](https://discuss.elastic.co/t/how-to-prevent-logstash-output-float-in-scientific-notation/37960 "2015-12-25T01:45:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abcfy2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abcfy2/32/453_2.png) [@abcfy2](https://discuss.elastic.co/u/abcfy2)
#### Post date: [December 25, 2015, 1:45am UTC](https://discuss.elastic.co/t/how-to-prevent-logstash-output-float-in-scientific-notation/37960/1 "2015-12-25T01:45:02Z")

</div>

Here is a postgresql slow query:

```
2015-12-25 09:28:34 CST [28500-1] aircare_root@aircare LOG: duration: 1322.650 ms statement: update sym_node_communication set locking_server_id= E'shifudaotest', lock_time= E'2015-12-25 9:28:33.403000 +8:0:0', last_lock_time= E'2015-12-25 9:28:33.403000 +8:0:0' where node_id= E'000' and communication_type= E'PULL' and (lock_time is null or lock_time < E'2015-12-25 7:28:33.403000 +8:0:0') 

```

The `duration` is `1322.650`

But when I output to e-mail with `subject => "slow_query: %{duration} ms"`, I find it will convert as scientific notation: `slow_query: 0.132265E4 ms`

How do I do to prevent float output in scientific notation?

---

<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: [July 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-to-prevent-logstash-output-float-in-scientific-notation/37960/2 "2017-07-06T05:17:19Z")

</div>


