.toByteArray for BigInteger & BigInt
This commit is contained in:
parent
284dcc0eae
commit
077e4b97d5
|
@ -66,9 +66,9 @@
|
||||||
clojure.lang.Ratio
|
clojure.lang.Ratio
|
||||||
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
||||||
clojure.lang.BigInt
|
clojure.lang.BigInt
|
||||||
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
(to-byte-array [this] (.toByteArray (.toBigInteger this)))
|
||||||
BigInteger
|
BigInteger
|
||||||
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
(to-byte-array [this] (.toByteArray this))
|
||||||
BigDecimal
|
BigDecimal
|
||||||
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
(to-byte-array [this] (long->bytes (Double/doubleToLongBits (double this))))
|
||||||
Boolean
|
Boolean
|
||||||
|
|
Loading…
Reference in New Issue