Java Fraction Format formatPotencia(float potencia)

Here you can find the source of formatPotencia(float potencia)

Description

format Potencia

License

Open Source License

Declaration

public static String formatPotencia(float potencia) 

Method Source Code

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

import java.text.DecimalFormat;

public class Main {
    private static final String PATRON_POTENCIA = "#,##0.00 cv";

    public static String formatPotencia(float potencia) {
        DecimalFormat df = new DecimalFormat(PATRON_POTENCIA);
        return df.format(potencia);
    }/*  www .jav a 2 s .  c om*/
}

Related

  1. formatoDecimal(String tipo, double valor)
  2. formatOLETime(double oleTime)
  3. formatOneDecimal(double dNumber)
  4. formatOneDp(double inNumber)
  5. formatPair(double in, double out)
  6. formatPowerFloat(float averageRfTickSent)
  7. formatPrice(Double price)
  8. formatQuantity(Double quantity)
  9. formatRate(double events, double time, String event)