Java Float Number Create toFloat(int colorComponent)

Here you can find the source of toFloat(int colorComponent)

Description

to Float

License

Open Source License

Declaration

public static float toFloat(int colorComponent) 

Method Source Code

//package com.java2s;

public class Main {
    public static float toFloat(int colorComponent) {
        return colorComponent / 255.0f;
    }/*  ww w  .  j a  v a 2s  .c o  m*/
}

Related

  1. toFloat(final Object valueRep)
  2. toFloat(final String value)
  3. toFloat(final String value)
  4. toFloat(final String value)
  5. toFloat(Float num, float defaultValue)
  6. toFloat(int hbits)
  7. toFloat(int majorVersion, int minorVersion)
  8. toFloat(int value)
  9. toFloat(int x)