Skip to content

Wrong @sprintf output with # flag #43129

@mwlidar

Description

@mwlidar
julia> @sprintf("%#.3g", 100.0 - eps(100.0))
"1000"

julia> @sprintf("%#.3g", 100.0)
"100."

This is with Julia 1.6.3

Metadata

Metadata

Assignees

Labels

backport 1.6Change should be backported to release-1.6backport 1.8Change should be backported to release-1.8bugIndicates an unexpected problem or unintended behaviordisplay and printingAesthetics and correctness of printed representations of objects.forget me notPRs that one wants to make sure aren't forgottenregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions