Java Float to FloatToInt(double x)

Here you can find the source of FloatToInt(double x)

Description

Float To Int

License

Open Source License

Declaration

public final static long FloatToInt(double x) 

Method Source Code

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

public class Main {
    public final static long FloatToInt(double x) {
        return Math.round(x);
    }//from   w ww. j ava 2  s . c  o m
}

Related

  1. floatToBasicType(float f, Class clazz)
  2. floatToBinaryStringUnsigned(float value)
  3. floatToChar(float[] values)
  4. floatToHalf(float f)
  5. floatToIntColor(float value)
  6. floatToPrefixCoded(float val)
  7. floatToRegisters(float f)
  8. floatToS390IntBits(float ieeeFloat)