Java Decimal Round RoundFractionalTons(double d)

Here you can find the source of RoundFractionalTons(double d)

Description

Round Fractional Tons

License

Open Source License

Declaration

public static double RoundFractionalTons(double d) 

Method Source Code

//package com.java2s;

import java.text.DecimalFormat;

public class Main {
    private final static DecimalFormat dft = new DecimalFormat("#.###"), dfc = new DecimalFormat("#.####");

    public static double RoundFractionalTons(double d) {
        return Double.valueOf(dft.format(d));
    }/*from w w  w. j  a  v a 2  s .  c om*/
}

Related

  1. roundDouble(double iVal)
  2. roundDouble(double num, int decimal)
  3. roundDouble(double numero, int ceros_a_la_derecha)
  4. roundDouble(Double val, int precision)
  5. roundedNumber(double inVal)
  6. roundNumDecimals(double d, int num)
  7. roundOffToTwoDecimal(double value)
  8. roundThreeDecimals(double d)
  9. roundTwoDecimals(double d)