-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
strfmt("{:.0}", -0.1)
should omit negative sign
#4
Comments
This is expected behavior, as it's how Rust does it, and this package aims to be as close as possible to Rust's #let old-strfmt = strfmt
#let strfmt(..args) = {
let result = old-strfmt(..args)
if result == "-0" { "0" } else { result }
} We could consider adding some sort of custom flag which just does that, but I'm not sure if it's worth it... |
Thanks @ntjess, I hadn't noticed the character was different until now! For now, I've elected a normal hyphen to be displayed in all cases instead. Perhaps we can change this in the future if needed. |
#strfmt("{:.0}", -0.1)
displays as-0
, where0
would be more appropriateThe text was updated successfully, but these errors were encountered: