| java.lang.Object org.apache.derby.client.am.FloatingPoint
FloatingPoint | public class FloatingPoint (Code) | | Converters from floating point bytes to Java float , double , or
java.math.BigDecimal .
|
Field Summary | |
final public static int | IEEE_754_FLOATING_POINT Supported Unix Big Endian IEEE 754 floating point representation. |
Method Summary | |
final public static void | doubleToIeee754Bytes(byte[] buffer, int offset, double d) Write a Java double to an 8-byte double precision floating point representation. | final public static void | floatToIeee754Bytes(byte[] buffer, int offset, float f) Write a Java float to a 4-byte floating point representation. | final public static double | getDouble(byte[] buffer, int offset) Build a Java double from an 8-byte floating point representation. | final public static float | getFloat(byte[] buffer, int offset) Build a Java float from a 4-byte floating point representation. |
IEEE_754_FLOATING_POINT | final public static int IEEE_754_FLOATING_POINT(Code) | | Supported Unix Big Endian IEEE 754 floating point representation.
|
doubleToIeee754Bytes | final public static void doubleToIeee754Bytes(byte[] buffer, int offset, double d)(Code) | | Write a Java double to an 8-byte double precision floating point representation.
|
floatToIeee754Bytes | final public static void floatToIeee754Bytes(byte[] buffer, int offset, float f)(Code) | | Write a Java float to a 4-byte floating point representation.
|
getDouble | final public static double getDouble(byte[] buffer, int offset)(Code) | | Build a Java double from an 8-byte floating point representation.
This includes DERBY types:
throws: IllegalArgumentException - if the specified representation is not recognized. |
getFloat | final public static float getFloat(byte[] buffer, int offset)(Code) | | Build a Java float from a 4-byte floating point representation.
This includes DERBY types:
throws: IllegalArgumentException - if the specified representation is not recognized. |
|
|