diff --git a/src/valuehash/impl.clj b/src/valuehash/impl.clj index 42e4888..a8562be 100644 --- a/src/valuehash/impl.clj +++ b/src/valuehash/impl.clj @@ -108,4 +108,7 @@ (map map-entry->byte-array) (sort ba-comparator) (cons map-sep) - (join-byte-arrays)))) + (join-byte-arrays))) + java.math.BigDecimal + (to-byte-array [this] + (.getBytes (.toString this))))