Java Number Format Pattern getStrFormatTwoPoint(float param)

Here you can find the source of getStrFormatTwoPoint(float param)

Description

get Str Format Two Point

License

Open Source License

Declaration

public static String getStrFormatTwoPoint(float param) 

Method Source Code

//package com.java2s;

public class Main {

    public static String getStrFormatTwoPoint(float param) {
        param += 0.001;/*from   w  w w  . j  av a  2  s . c o  m*/
        java.text.DecimalFormat df = new java.text.DecimalFormat("#0.00");
        return df.format(param);
    }
}

Related

  1. getNumberStyleAsInt(String style)
  2. getOneFractionDigitNumberFormat()
  3. getPriceFormat()
  4. getScientificFormatter(int precision)
  5. getSeparator(final NumberFormat format)
  6. getTeamIDFormat()
  7. getUiNumberFormat()
  8. getUSNumberFormatter()
  9. getValueFormatted(String name, String value)