Java Float Number Create toFloat(Object rawColor)

Here you can find the source of toFloat(Object rawColor)

Description

to Float

License

Open Source License

Declaration

private static float toFloat(Object rawColor) 

Method Source Code

//package com.java2s;

public class Main {
    private static float toFloat(Object rawColor) {
        return rawColor instanceof Integer ? (float) (Integer) rawColor : (float) (double) rawColor;
    }/*from   w  w w .j  av  a2  s  .  c o m*/
}

Related

  1. toFloat(Object obj)
  2. toFloat(Object obj)
  3. toFloat(Object obj)
  4. toFloat(Object obj)
  5. toFloat(Object obj, String pattern)
  6. toFloat(Object v)
  7. toFloat(Object val)
  8. toFloat(Object val)
  9. toFloat(Object value)