Scripting API

Home Scripting API Index Class Overview

nlvm.lang

Class Double


public final class Double
extends Number

Immutable object wrapper for double

Constructor Summary

Double(double value)
    Create an immutable object with a specific double value.


Method Summary

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


Constructor Detail


Double

public Double(double value)

Create an immutable object with a specific double value.


Method Detail


doubleToLongBits

public static long doubleToLongBits(double value)

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


doubleValue

public double doubleValue()

Return the double value


equals

public bool equals(Object obj)


floatValue

public float floatValue()

Cast the double value to float


hashCode

public int hashCode()


intValue

public int intValue()

Cast the double value to int


isNaN

public bool isNaN()

Checks if value is NaN (Not a Number)


longBitsToDouble

public static double longBitsToDouble(long bits)

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


parseDouble

public static double parseDouble(String s)

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


toString

public String toString()