Java Number Format format(String number)

Here you can find the source of format(String number)

Description

format

License

Apache License

Declaration

public static Double format(String number) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Double format(String number) {
        Double ret = null;//  w w  w .  j a v a  2s.  c om
        String work = number.replace(',', '.');
        ret = new Double(work);
        return ret;
    }
}

Related

  1. format(int decs, double number)
  2. format(int number, int length)
  3. format(Number number)
  4. format(String number)
  5. formatAmountDigits(String numberString, int length)
  6. formatBinaryNumber(int number, int size)
  7. formatBytes(long number)