Android Double Round twoDecimalDoubleFormatter(double number)

Here you can find the source of twoDecimalDoubleFormatter(double number)

Description

two Decimal Double Formatter

Declaration

public static String twoDecimalDoubleFormatter(double number) 

Method Source Code

//package com.java2s;

public class Main {
    public static String twoDecimalDoubleFormatter(double number) {
        return String.format("%.2f", number);
    }// w  ww.ja v  a 2 s  . c o m
}

Related

  1. round(double val, int numberOfDigitsAfterDecimal)
  2. round(double what, int howmuch)
  3. roundTwoDecimals(double d)
  4. round(double number, int decimal)
  5. convertDecimal(double d)