public JSONObject put(String key,double value,int round){
  super.put(key,Math.round(value * Math.pow(10,round)) / Math.pow(10,round));
  return this;
}

public JSONObject put ( String key , double value , int round ) { super . put ( key , Math . round ( value * Math . pow ( 10 , round ) ) / Math . pow ( 10 , round ) ) ; return this ; }
put a key / double pair in the jsonobject .
