Java Number Format Pattern createNumberFormat()

Here you can find the source of createNumberFormat()

Description

create Number Format

License

Open Source License

Declaration

private static NumberFormat createNumberFormat() 

Method Source Code

//package com.java2s;
/**/* w  w  w.  java 2s .co m*/
 *    Copyright Masao Nagasaki
 *    Nagasaki Lab
 *    Laboratory of Biomedical Information Analysis,
 *    Department of Integrative Genomics,
 *    Tohoku Medical Megabank Organization, Tohoku University 
 *    @since 2013
 *
 *    This file is part of SUGAR (Subtile-based GUI-Assisted Refiner).
 *    SUGAR is an extension of FastQC (copyright 2010-12 Simon Andrews)
 *
 *    SUGAR is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    SUGAR is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with SUGAR; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

import java.text.DecimalFormat;
import java.text.NumberFormat;

public class Main {
    private static NumberFormat createNumberFormat() {
        DecimalFormat result = new DecimalFormat();
        result.setMaximumFractionDigits(4);
        return result;
    }
}

Related

  1. countFormat(int no)
  2. createDecimalFormat(final String pattern)
  3. CreateDecimalFormat(int numberOfDecimalsDisplayed)
  4. createDecimalFormat(String pattern)
  5. createDecimalFormatter(String pattern)
  6. createNumberFormat(int cnt)
  7. createOrderVolumeNumberFormat()
  8. createRealFormat()
  9. expFormatRupiah(Number input, boolean prependRp)