Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27852

CLI formatter for doubles should emit {value}.0 for doubles with no fractional component

    • Server Tooling & Methods

      A common thing to do in the CLI is this:

      > db.foo.findOne();
      {
      	"_id" : ObjectId("588d3099827f74e88834ba88"),
      	"K_dbl" : 3,
      ...
      

      and then copy and paste the output somewhere. As the field name hints here, K_dbl is double:

      Buzzs-MacBook-Pro-2:stuff buzz$ sh runt walkMongo -d testX -c foo --justOne
      _id: org.bson.types.ObjectId: 588d3099827f74e88834ba88
      K_dbl: java.lang.Double: 3.0
      ...
      

      We really should add ".0" to make it totally obvious this is a double.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            buzz.moschetti Buzz Moschetti
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: