Crates.io | schubfach |
lib.rs | schubfach |
version | 0.0.1 |
source | src |
created_at | 2023-03-10 15:57:39.945096 |
updated_at | 2023-03-10 15:57:39.945096 |
description | Schubfach algorithm for floating-point to string conversion |
homepage | https://github.com/blueglyph/schubfach_rs |
repository | https://github.com/blueglyph/schubfach_rs |
max_upload_size | |
id | 806530 |
size | 162,635 |
This is a Rust implementation of the Schufbach algorithm that converts IEEE-754 double-precision floating-point values to their string decimal representation.
It is performant and has a relatively small footprint. For performance comparisons, check the Drachennest project or the Dragonbox project.
WARNING! This is very much work-in-progress.
The code is functional but must still be more thoroughly tested and optimized. The API is not considered as definitive yet, not is the code architecture.
Current features:
Planned features:
The algorithm is described by its author in the following article:
The author made a Java implementation:
The Rust code is mainly a translation from Alexander Bolz's C++ implementation:
https://github.com/abolz/Drachennest
with the following licence:
Copyright 2020 Alexander Bolz
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
https://www.boost.org/LICENSE_1_0.txt)
The schubfach
crate is tested for rustc 1.68 and greater, on Windows 64-bit and Linux 64/32-bit platforms. There shouldn't be any problem with older versions.
Licensed under MIT license.