Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add thousands digit separator for WriteIntegerOptions to use with to_string_with_options #85

Open
mrkaragoz opened this issue May 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mrkaragoz
Copy link

It would be good for ease of reading.

Example

const FORMAT: u128 = lexical::format::STANDARD;
let options = lexical::WriteIntegerOptions::builder()
    .thousands_separator("_")
    .build()
    .unwrap();
assert_eq!(lexical::to_string_with_options::<_, FORMAT>(10, &options), "10");
assert_eq!(lexical::to_string_with_options::<_, FORMAT>(1000000, &options), "1_000_000");
@mrkaragoz mrkaragoz added the enhancement New feature or request label May 26, 2022
@mrkaragoz mrkaragoz changed the title [FEATURE] Add thousands digit separator for WriteIntegerOptions to use with to_string_with_options [FEATURE] Add thousands digit separator for WriteIntegerOptions to use with to_string_with_options May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants