mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
non-working implementation of float and double.toString()
This commit is contained in:
@ -35,7 +35,9 @@ public final class Double extends Number {
|
||||
}
|
||||
|
||||
public static String toString(double v) {
|
||||
return "Double.toString: todo";
|
||||
byte[] buffer = new byte[20];
|
||||
int numChars = fillBufferWithDouble(v, buffer, 20);
|
||||
return new String(buffer, 0, numChars, false);
|
||||
}
|
||||
|
||||
public byte byteValue() {
|
||||
@ -67,6 +69,9 @@ public final class Double extends Number {
|
||||
throw new NumberFormatException(s);
|
||||
}
|
||||
|
||||
public static native int fillBufferWithDouble(double value, byte[] buffer,
|
||||
int charCount);
|
||||
|
||||
public static native long doubleToRawLongBits(double value);
|
||||
|
||||
public static native double longBitsToDouble(long bits);
|
||||
|
Reference in New Issue
Block a user