这是indexloc提供的服务,不要输入任何密码
Skip to content

Allow specifying number of decimals without padding #33

@SolidTux

Description

@SolidTux

It would be great to have an option to format a floating point number with a specified number of decimals, but without zero padding on the right. In some cases, this can be achieved with string.trim or calc.round, but with scientific notation, this becomes more involved. I know this is beyond the specification of Rust's fmt, so I don't know how such an option could be specied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions