Java tutorial
//package com.java2s; import java.text.NumberFormat; public class Main { public static long String2AmountFloat4QPOS(String str) { try { String tempStr = NumberFormat.getNumberInstance().format(Long.parseLong(str, 10)).replace(",", ""); return Long.parseLong(tempStr); } catch (Exception e) { e.printStackTrace(); return 0; } } }