title: PyMongo misbehaving with floating point numbers
body: <p>I am using PyMongo to save data to a MongoDB. THe following is my code:</p>
  
  <pre><code>from pymongo import MongoClient
  import time
  
  
  class data2db:
      def __init__(self):
          pass
  
      def enter_data(self, data):
          client = MongoClient('127.0.0.1', 27017)
          db = client.db
          coll = db.Temperature1
          post = {"auth": data,
                  "Time": time.asctime(time.localtime(time.time()))}
          post_ = coll.insert(post)
  
  
  c = data2db()
  
  c.enter_data(24.3)
  </code></pre>
  
  <p>However, when I retrieve this object I get:</p>
  
  <pre><code>{ "_id" : ObjectId("558019749f43b8c19779c106"), "auth" : -0.000063384, "Time" : "Tue Jun 16 08:41:24 2015" }
  </code></pre>
  
  <p>When I try the same code with integers it is working fine. I am using MongoDB 2.6.3 on RaspberryPi with the latest version of Raspbian and python 2.7.3. I installed Pymongo from the Raspbian repository, via this command:</p>
  
  <pre><code>sudo apt-get install python-pymongo
  </code></pre>
  
  <p>Can someone please help me out?</p>
  
  <p>Update:
  The same code behaves perfectly on an intel computer using Ubuntu 14.04 LTS, mongoDB 3.0.1, python 2.7.3 and pyMongo 2.8 but when it comes to Raspbian the behaviour changes. Even in the mongo shell floating point insertions on Raspbian are misbehaving. It may be because of limited floating point support or a deprecated mongoDB version (The binaries for the latest version are not available for ARM). In anycase I'll try it with rpi2 later today and check it makes a difference or not.</p>