Java Object to Float castToFloat(final String uid)

Here you can find the source of castToFloat(final String uid)

Description

cast To Float

License

Open Source License

Declaration

public static Float castToFloat(final String uid) 

Method Source Code

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

public class Main {
    public static Float castToFloat(final String uid) {
        try {/*from w  w  w.j  ava2 s. c  o m*/
            return Float.parseFloat(uid);
        } catch (NumberFormatException nfe) {
            return null;
        }
    }
}

Related

  1. castToFloat(final double v)
  2. objectToFloat(Object o)
  3. objectToFloat(Object obj)
  4. objectToInt(Object o)
  5. objectToInt(Object o)