Add serialization for BigDecimal

This commit is contained in:
Peter Selby 2021-06-12 22:42:59 -07:00
parent ff1d4b7f12
commit 9d2dbafdb5
1 changed files with 4 additions and 1 deletions

View File

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