Java Float Number Create toFloat(String s)

Here you can find the source of toFloat(String s)

Description

Converts a string into a float

License

Open Source License

Parameter

Parameter Description
s a parameter

Return

float

Declaration

public static double toFloat(String s) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*www  .j  ava  2  s .co m*/
     * Converts a string into a float
     *
     * @param s
     * @return float
     */
    public static double toFloat(String s) {
        return Float.parseFloat(s);
    }
}

Related

  1. toFloat(short[] arr)
  2. toFloat(short[] src)
  3. toFloat(String parameter)
  4. toFloat(String property, float f)
  5. toFloat(String s)
  6. toFloat(String s)
  7. toFloat(String str)
  8. toFloat(String str)
  9. toFloat(String str)