Number160 extends Number implements Comparable<Number160> { @Override public float floatValue() { return (float) doubleValue(); } Number160();  Number160(final int... val);  Number160(final String val);  Number160(final int val);  Number160(final long val);  Number160(final byte[] val);  Number160(final byte[] val, final int offset, final int length);  Number160(final Random random);  Number160(final long timestamp, Number160 number96); long timestamp(); Number160 number96(); Number160 xor(final Number160 key); int[] toIntArray(); int toByteArray(final byte[] me, final int offset); byte[] toByteArray(); String toString(final boolean removeLeadingZero); boolean isZero(); int bitLength(); @Override String toString(); @Override double doubleValue(); @Override float floatValue(); @Override int intValue(); @Override long longValue(); @Override int compareTo(final Number160 o); @Override boolean equals(final Object obj); @Override int hashCode(); static Number160 createHash(final int integerValue); static Number160 createHash(final long longValue); static Number160 createHash(final String string); static final int BITS; static final int INT_ARRAY_SIZE; static final int BYTE_ARRAY_SIZE; static final int CHARS_PER_INT; static final Number160 ZERO; static final Number160 ONE; static final Number160 MAX_VALUE; }
@Test public void testFloat() { BigInteger bi1 = new BigInteger("1234567890abcdef1234567890abcdef12345678", 16); Number160 ki1 = new Number160("0x1234567890abcdef1234567890abcdef12345678"); BigInteger bi2 = new BigInteger("357116889007843534245232322114545905234a", 16); Number160 ki2 = new Number160("0x357116889007843534245232322114545905234a"); Assert.assertEquals(0, Float.compare(bi1.floatValue(), ki1.floatValue())); Assert.assertEquals(0, Float.compare(bi2.floatValue(), ki2.floatValue())); }