将号码转换为双号

问题描述:

我想将以下号码转换为双号。将号码转换为双号

Number mMax_Distance = ParseUser.getCurrentUser().getNumber("Maximum_Distance"); 

我正在使用解析,并在其中我有一列称为Maximum_distance并被归类为一个数字。

我需要将其转换成数字,因为我想在下面的行使用:

query.whereWithinKilometers("location", point, mMax_Distance); 

其中mMax_Distance必须是双

其他解决它是存储方式它直接作为一个双数而不是数字。但是,它使用seekbar值进行分类,用户通过seekbar确定它们的最大距离,我相信seekbar只存储数字。

currentUser.put("Maximum_Distance", seekBarDistance.getProgress()); 

任何帮助将不胜感激。如果您需要澄清,请告诉我。