rust-lexical icon indicating copy to clipboard operation
rust-lexical copied to clipboard

Fast numeric to- and from-string conversion routines.

Results 29 rust-lexical issues
Sort by recently updated
recently updated
newest added

## Description When parsing C-style hexadecimal floats (`C_HEX_STRING`/`HEX_FLOAT`) Lexical currently throws the following assertion failure in debug mode: ``` thread 'main' panicked at 'assertion failed: format.mantissa_radix() == format.exponent_base()', /home/tibor/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-parse-float-0.8.5/src/number.rs:60:9 ```...

bug
normal priority

It would be good for ease of reading. ### Example ```rust const FORMAT: u128 = lexical::format::STANDARD; let options = lexical::WriteIntegerOptions::builder() .thousands_separator("_") .build() .unwrap(); assert_eq!(lexical::to_string_with_options::(10, &options), "10"); assert_eq!(lexical::to_string_with_options::(1000000, &options), "1_000_000"); ```

enhancement

## Problem Currently, `lexical-core` can only parse `f32` and `f64`, but especially for designers of programming languages supporting more number formats than Rust does would be nice. ## Solution Offer...

enhancement
normal priority

## Question I'd like to always write exactly three significant digits in the fractional part. It would seem that I need to include both `min_significant_digits(...)` and `max_significant_digits(...)`. ``` const FORMAT:...

bug
good first issue
high priority

## Description When compiling `rust-lexical-util`, it fails with the following error: ``` Compiling tests/mul_tests.rs to .guix-tests/mul_tests error[E0432]: unresolved import `quickcheck` --> tests/mul_tests.rs:2:5 | 2 | use quickcheck::quickcheck; | ^^^^^^^^^^ use...

bug
good first issue

## Description The following ```rust let x: i32 = lexical::parse("9589934592").unwrap(); dbg!(x); ``` prints `1000000000` instead of giving an error. ## Prerequisites Here are a few things you should provide to...

bug

## Description The `write_float` functionality does not print the sign of negative 0. ## Prerequisites - Rust version: `rustc 1.70.0-nightly (478cbb42b 2023-03-28)` - lexical version: 6.1.1 - lexical compilation features...

bug

Bump proptest to 1.0

Fixes #102 This would be a breaking change. The nonbreaking way to do this is to doc(hidden) and deprecate the old API, but I'll let y'all figure out how to...

BytesIter seems to have a safety invariant: https://github.com/Alexhuszagh/rust-lexical/blob/09c686b075096d48155cfb32265068f962afc56c/lexical-util/src/iterator.rs#L20-L22C1 This means the trait should be private or unsafe. I don't have time to craft a testcase, but it would mostly be...

bug