8000 Support precision width for formatting floats · Issue #181 · oridb/mc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support precision width for formatting floats #181
Open
@wasamasa

Description

@wasamasa

std.fmt does currently only offer the "w" and "p" flags for ensuring a minimum width and padding to that width. Something equivalent to "%.2f" in C would be nice to have, such a flag would set the exact width of the digits after the decimal point. There's a bit of complication in C mandating that rounding must happen and that a precision of zero is handled specially by not printing a decimal point at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0