.toByteArray for BigInteger & BigInt

This commit is contained in:
prepor 2020-03-02 15:08:51 +01:00
parent 284dcc0eae
commit 077e4b97d5
1 changed files with 2 additions and 2 deletions

View File

@ -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