Lossless decimal parsing and plain-wire serialization helpers.
Lossless decimal parsing and plain-wire serialization helpers.
(normalize value)Returns a numerically canonical BigDecimal without silently rounding it.
Returns a numerically canonical BigDecimal without silently rounding it.
(parse value)Parses a BigDecimal, integer, or strict plain-decimal string without rounding.
Exponent notation, floating-point inputs, whitespace, and shorthand forms such
as .1 are rejected so the accepted lexical form is always explicit.
Parses a BigDecimal, integer, or strict plain-decimal string without rounding. Exponent notation, floating-point inputs, whitespace, and shorthand forms such as `.1` are rejected so the accepted lexical form is always explicit.
(plain-string value)Returns a non-scientific decimal string while preserving meaningful scale.
Returns a non-scientific decimal string while preserving meaningful scale.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |