Scripting API

Home Scripting API Index Class Overview

nlvm.lang

Class Float


public final class Float
extends Number

Immutable object wrapper for float

Constructor Summary

Float(float value)
    Create an immutable object with a specific float value.


Method Summary

double doubleValue()
  Cast the float value to double
bool equals(Object obj)
static int floatToIntBits(float value)
  Returns the IEEE 754 floating-point "single format" bit layout representation of the value.
float floatValue()
  Return the float value
int hashCode()
static float intBitsToFloat(int bits)
  Returns a float value from a IEEE 754 floating-point "single format" bit layout representation.
int intValue()
  Cast the float value to int
bool isNaN()
  Checks if value is NaN (Not a Number)
static float parseFloat(String s)
  Returns a float value parsed from a string. Will throw an exception if the string does not contain a parseable number.
String toString()


Constructor Detail


Float

public Float(float value)

Create an immutable object with a specific float value.


Method Detail


doubleValue

public double doubleValue()

Cast the float value to double


equals

public bool equals(Object obj)


floatToIntBits

public static int floatToIntBits(float value)

Returns the IEEE 754 floating-point "single format" bit layout representation of the value.


floatValue

public float floatValue()

Return the float value


hashCode

public int hashCode()


intBitsToFloat

public static float intBitsToFloat(int bits)

Returns a float value from a IEEE 754 floating-point "single format" bit layout representation.


intValue

public int intValue()

Cast the float value to int


isNaN

public bool isNaN()

Checks if value is NaN (Not a Number)


parseFloat

public static float parseFloat(String s)

Returns a float value parsed from a string. Will throw an exception if the string does not contain a parseable number.


toString

public String toString()