dtolnay / dtolnay/ryu

Feature request: Expose some of the properties calculated about the float pre-output

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
705
Forks
39
PR merge metrics
No merged PRs in 30d

Description

For example [around here](https://github.com/dtolnay/ryu/blob/668d654fd67c16bbeb53e5413c97e91a41bd84e5/src/pretty/mod.rs#L70C6-L70C6) You calculate the length of the resulting decimal portion of the string

That is the specific number I am after; at the moment I am having to split the string and grab the length of the decimal portion

Some method on `ryu::Float` which exposes this property without needing to construct an entire string would be nice

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.