Skip to content

printf prints typemin(<:Signed) incorrectly #41971

@StefanKarpinski

Description

@StefanKarpinski
julia> using Printf

julia> @sprintf "%4d" typemin(Int8)
"-/.("

julia> @sprintf "%4d" typemin(Int16)
"--.)*("

julia> @sprintf "%4d" typemin(Int32)
"-./,),(-*,("

julia> @sprintf "%4d" typemin(Int64)
"-'..--).0-*(+,))+(0("

julia> @sprintf "%4d" typemin(Int128)
"-/)0/,//(-,*0,*'.-/)-/*()-0-)/+((,/0+).("```

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviordisplay and printingAesthetics and correctness of printed representations of objects.embarrassing-bugfixWhoops!strings"Strings!"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions