JuliaLang/julia — Issue #346: printf and complex numbers
Author: ViralBShah
Created: 2012-01-18 09:50:20+00:00
State: open

How do we handle complex numbers in printf? It would be nice to handle them. Does C99 say anything on the topic?

julia> printf("%8.2f\n", randn()+im*randn())
type error: typeassert: expected Real, got Complex128
in anonymous, no file
in printf, /Users/viral/julia/j/printf.j:315
in run_repl, /Users/viral/julia/j/client.j:22
in _start, /Users/viral/julia/j/client.j:130