Crates.io | strtod |
lib.rs | strtod |
version | 0.1.0 |
source | src |
created_at | 2015-06-22 07:41:05.048638 |
updated_at | 2024-11-22 15:39:38.622838 |
description | A high precision floating point parser implementation for Rust |
homepage | https://github.com/kod-kristoff/strtod |
repository | https://github.com/kod-kristoff/strtod |
max_upload_size | |
id | 2443 |
size | 89,622 |
strtod
is a floating point parsing implementation for Rust with very
high precision, far better than the built in Rust floating point parser.
https://docs.rs/strtod
The documentation can be found at https://docs.rs/strtod.
This is a maintained fork of strtod
.
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 should be reported through github at http://github.com/kod-kristoff/strtod/issues.
This library supports Rust version 1.16.0
. Every change of the MSRV is done with a minor version bump.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.