我想float类型的数据存储到mySqlserver..I用于传递data..Unless的NameValuePair其他选项包括有用于传递非字符串值什么企图的NameValuePair ...Android:如何将一个float值传递给mysqlServer?
Float currentuserrate,serverrate,newrate;
ArrayList<NameValuePair> r = new ArrayList<NameValuePair>();
newrate = Float.valueOf(decimalFormat.format((currentuserrate * count + serverrate)
/++count));
r.add(new BasicNameValuePair("newrate", newrate));
我得到错误使用的NameValuePair只有字符串值可以传递...... PLZ帮我....