zmij: Round-Trip-Safe Double-Precision Formatting
Converts double-precision floating-point values to decimal strings
with the shortest significands needed for round-trip recovery. Uses the
'zmij' algorithm through a vendored 'Rust' implementation. The method is
described in Zverovich (2025), "Faster Double-to-String Conversion"
<https://vitaut.net/posts/2025/faster-dtoa/>. Provides vectorized
formatting, a correctly rounded inverse parser, and explicit handling of
missing and non-finite values.
| Version: |
0.1.0 |
| Depends: |
R (≥ 4.2) |
| Suggests: |
testthat (≥ 3.0.0) |
| Published: |
2026-08-04 |
| DOI: |
10.32614/CRAN.package.zmij |
| Author: |
Nan Xiao [aut,
cre, cph],
David Tolnay [ctb, cph] (Author of the vendored Rust zmij crate),
Victor Zverovich [ctb, cph] (Author of the zmij algorithm and original
C++ implementation) |
| Maintainer: |
Nan Xiao <me at nanx.me> |
| BugReports: |
https://github.com/nanxstats/zmij/issues |
| License: |
MIT + file LICENSE |
| Copyright: |
file inst/COPYRIGHTS zmij copyright details |
| URL: |
https://nanx.me/zmij/, https://github.com/nanxstats/zmij |
| NeedsCompilation: |
yes |
| SystemRequirements: |
Cargo (Rust's package manager), rustc >= 1.71.0, xz |
| Materials: |
README, NEWS |
| CRAN checks: |
zmij results |
Documentation:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=zmij
to link to this page.