JuliaLang/julia

Printf for complex numbers

Aberta

#58.617 aberto em 3 de jun. de 2025

 (4 comentários) (0 reação) (0 responsável)Julia (5.773 forks)batch import
complexdisplay and printingfeaturehelp wanted

Métricas do repositório

Stars
 (48.709 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Currently, @sprintf "%.2f" (1+2im) errors, but it would make sense for it to produce "1.00 + 2.00im" I think. Currently, printfing a complex number is not really convenient, requiring a manual split into real + complex, and keeping the format string in sync between them.

Guia do colaborador