Java Decimal Format pad(double n)

Here you can find the source of pad(double n)

Description

pad

License

Apache License

Declaration

public static String pad(double n) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {
    private static final DecimalFormat formatter = new DecimalFormat("0000000000.00");

    public static String pad(double n) {
        return formatter.format(n);
    }/* w  ww  .  j a  v  a2 s  .c  o  m*/
}

Related

  1. isprime(double x)
  2. isValidDouble(String value, int decimals)
  3. Julian_Cal(double JDN)
  4. listToString(List list)
  5. numToString(double num)
  6. padding(final double number)
  7. padToMinWidth(double num, int minWidth)
  8. prettyPrintLatLon(double coord, boolean isCoordKindLat)
  9. print(double[] y)