如果double值为:18000 则取10000如果值为 39000 则取30000;就是如果值大于几万,则取万,后面为0
double a = 19000;int b =(int)a/10000 * 10000