feat(encoder): float

This commit is contained in:
hylo 2022-12-30 17:53:13 +01:00
parent 976a862ed3
commit 5ff69c5982
1 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,13 @@
(match type
("string"
(toml-build-string value port))
("float"
(put-string port (string-append value
(if (or
(string-contains value "n")
(string-contains value "."))
""
".0"))))
(_
(put-string port value))))
;; ("integer")))