-
Notifications
You must be signed in to change notification settings - Fork 45
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
Sprintf doesn't care about OutDec option #477
Comments
Yes, this is mentioned in the documentation of
|
Interestingly, https://linux.die.net/man/3/sprintf mentions that
But this is not supported by base R |
Stringi does not have it either - it is related to the (still missing) feature of formatting numerals (#81) |
But this is reflected in a large number of other libraries.
От: Marek Gagolewski
Отправлено: 7 мая 2022 г. в 10:37
Кому: gagolews/stringi
Копия: yurasmol; Author
Тема: Re: [gagolews/stringi] Sprintf doesn't care about OutDec option(Issue #477)
Stringi does not have it either - it is related to the (still missing) feature of formatting numerals (#81)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
It is definitely a feature worth having - added to the to-do list. |
options(OutDec=",")
val = 0.86771
sprintf("%.3f", val)
#[1] "0.868"
The text was updated successfully, but these errors were encountered: