String cinput = "1.5K";
long ninput = 10483892;
long result;
ScaledNumberFormat nf = new ScaledNumberFormat();
result = ((Long)nf.parseObject(cinput, null)).longValue();
System.out.println(cinput + " -> " + result);
System.out.println(ninput + " -> " + nf.format(ninput));