org.knowceans.sandbox
Class _Test

java.lang.Object
  extended by org.knowceans.sandbox._Test

public class _Test
extends java.lang.Object


Constructor Summary
_Test()
           
 
Method Summary
private  double bytearray2double(byte[] array)
           
(package private) static byte[] d2b(double d)
          convert double to byte array
private  byte[] double2bytearray(double number)
           
static void main(java.lang.String[] args)
           
private static void news()
           
private static void old()
           
private static void printBits(byte bits)
           
private static void printBits(byte[] bytes)
          prints the bits from left to right
private static void printBits(long bits)
          prints the bits from left to right
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

_Test

public _Test()
Method Detail

main

public static void main(java.lang.String[] args)

news

private static void news()

old

private static void old()

double2bytearray

private byte[] double2bytearray(double number)

bytearray2double

private double bytearray2double(byte[] array)

d2b

static byte[] d2b(double d)
convert double to byte array

Parameters:
d -
Returns:

printBits

private static void printBits(long bits)
prints the bits from left to right

Parameters:
bits -

printBits

private static void printBits(byte[] bytes)
prints the bits from left to right

Parameters:
bits -

printBits

private static void printBits(byte bits)