Java Float to String floatToString(Float num)

Here you can find the source of floatToString(Float num)

Description

float To String

License

BSD License

Declaration

public static String floatToString(Float num) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

public class Main {
    public static String floatToString(Float num) {
        java.text.NumberFormat f = java.text.NumberFormat.getInstance();
        f.setGroupingUsed(false);/*from  w w w. ja  v  a2 s  .c  o m*/
        return f.format(num);
    }
}

Related

  1. floatToString(float d)
  2. floatToString(float f, boolean asAPI)
  3. floatToString(float f, int precision)
  4. floatToString(float f, int precision)
  5. floatToString(float fValue)
  6. floatToString(float val, int width)
  7. FloatToString(float value)
  8. floatToString(float value)
  9. floatToString(float value, int precision)