Java Double Number Truncate truncateNoSciNotation(double d, int decimals)

Here you can find the source of truncateNoSciNotation(double d, int decimals)

Description

truncate No Sci Notation

License

Open Source License

Declaration

public static String truncateNoSciNotation(double d, int decimals) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String truncateNoSciNotation(double d, int decimals) {
        return String.format("%." + decimals + "f", d);
    }//from  ww  w . j  av  a 2 s . c  om
}

Related

  1. truncateDouble(final Double value)
  2. truncateDoubleDecimals(double x1, int num)
  3. truncateDoubleToInt(double p_76140_0_)
  4. truncateDoubleToInt(double x)
  5. truncateNaN(double[] values)
  6. truncateRows(double[][] matrix, int nCols)
  7. truncateToTwoDecimals(double value)
  8. truncDouble(double val)
  9. truncDouble(Double value, int decimals)