Android Float Format formatFloat(float money)

Here you can find the source of formatFloat(float money)

Description

format Float

Declaration

public static String formatFloat(float money) 

Method Source Code

//package com.java2s;

import java.text.DecimalFormat;

public class Main {

    public static String formatFloat(float money) {
        return new DecimalFormat("0.00").format(money);
    }/*  w ww  . j  a  va  2 s . com*/
}

Related

  1. formatAmount(float f)
  2. formatFloatValue(float value)
  3. formatAmount(float f)
  4. formatSpeed(float data)
  5. formatSpeed(float data, String format)
  6. formatSpeedValue(float speed)