Java Float Number Create toFloat(final Object valueRep)

Here you can find the source of toFloat(final Object valueRep)

Description

to Float

License

Open Source License

Declaration

public static Float toFloat(final Object valueRep) throws NumberFormatException 

Method Source Code

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

public class Main {
    public static Float toFloat(final Object valueRep) throws NumberFormatException {
        return Float.parseFloat(String.valueOf(valueRep));
    }/*w  w  w. j  av a  2  s  .c  om*/
}

Related

  1. toFloat(final byte[] ba)
  2. toFloat(final byte[] inputBytes, final int offset)
  3. toFloat(final Integer value)
  4. toFloat(final Object o, final String pattern)
  5. toFloat(final Object obj)
  6. toFloat(final String value)
  7. toFloat(final String value)
  8. toFloat(final String value)
  9. toFloat(Float num, float defaultValue)