#parser #float #f64 #parse #floating-point #strtod

strtod2

Forked from strtod, A high precision floating point parser implementation for Rust

1 unstable release

Uses old Rust 2015

0.0.1 Oct 15, 2020

#40 in #f64

Download history 24/week @ 2024-03-11 32/week @ 2024-03-18 33/week @ 2024-03-25 61/week @ 2024-04-01 24/week @ 2024-04-08 18/week @ 2024-04-15 33/week @ 2024-04-22 23/week @ 2024-04-29 22/week @ 2024-05-06 29/week @ 2024-05-13 21/week @ 2024-05-20 30/week @ 2024-05-27 24/week @ 2024-06-03 21/week @ 2024-06-10 16/week @ 2024-06-17 30/week @ 2024-06-24

94 downloads per month
Used in 5 crates (2 directly)

Apache-2.0

38KB
1.5K SLoC

strtod for Rust

Apache 2.0 License.

Introduction

strtod is a floating point parsing implementation for Rust with very high precision, far better than the built in Rust floating point parser.

The documentation can be found at http://pvginkel.github.io/strtod/strtod/.

Remarks

The quality of the source is not really something to write home about. The reason for this is that this implementation is a verbatim translation from http://mxr.mozilla.org/mozilla-central/source/js/src/dtoa.c. That being said, the quality of the parser itself is very high.

The performance of this implementation should be OK. However there is room for improvement in the BigNum implementation that the parser uses, e.g. by caching instances or calculations. The original implementation does this, but this has been removed from this implementation.

Bugs

Bugs should be reported through github at http://github.com/pvginkel/strtod/issues.

License

PdfiumViewer is licensed under the Apache 2.0 license. See the license details for how PDFium is licensed.

No runtime deps