akubera / bigdecimal-rs

Arbitrary precision decimal crate for Rust
Other
284 stars 71 forks source link

Incorrect handling of "_" chars in decimal part of number #100

Closed DanielBauman88 closed 1 year ago

DanielBauman88 commented 1 year ago

To see this run println!("{}", BigDecimal::from_str("1_1.2_2").unwrap().to_string()); and you will see 1.122 as the output.

DanielBauman88 commented 1 year ago

Proposed fix: https://github.com/akubera/bigdecimal-rs/pull/99