Java Float Number Create toFloat(String value, float _default)

Here you can find the source of toFloat(String value, float _default)

Description

to Float

License

Apache License

Declaration

public static float toFloat(String value, float _default) 

Method Source Code

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

public class Main {
    public static float toFloat(String value, float _default) {
        if (value == null || value.length() == 0)
            return _default;
        return Float.valueOf(value);
    }//  www . jav a2  s  .com
}

Related

  1. toFloat(String string)
  2. toFloat(String text)
  3. toFloat(String text)
  4. toFloat(String value)
  5. toFloat(String value)
  6. toFloat(String value, Float defaultValue)
  7. toFloat(String value, float defaultValue)
  8. toFloat(T value)
  9. toFloatA(byte[] data)