# Strange Smile Bug

**URL:** <https://discuss.elastic.co/t/strange-smile-bug/4656>\
**Category:** Elasticsearch\
**Created:** [June 19, 2011, 10:05pm UTC](https://discuss.elastic.co/t/strange-smile-bug/4656 "2011-06-19T22:05:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [June 19, 2011, 10:05pm UTC](https://discuss.elastic.co/t/strange-smile-bug/4656/1 "2011-06-19T22:05:56Z")

</div>

Hi,  
In one of our unit test case we noticed a strange bug about Smile data  
format. We cannot reproduce it with JSON.  
I created a gist which may help you to understand the problem

> <https://gist.github.com/enguzekli/1034810>

It seems that it happens when we assign floating point number to long  
property. I think this somehow effects integer property value and turns it  
to a floating point number.

--  
Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)

---

<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, 4:03am UTC](https://discuss.elastic.co/t/strange-smile-bug/4656/2 "2017-07-06T04:03:09Z")

</div>

Closed on July 6, 2017, 4:03am UTC


