Skip to content

Commit 9cb8cab

Browse files
committed
print Inf*x differently
1 parent c06556f commit 9cb8cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ end
494494
function show_mul(io, args)
495495
length(args) == 1 && return print_arg(io, *, args[1])
496496

497-
paren_scalar = args[1] isa Complex || args[1] isa Rational
497+
paren_scalar = args[1] isa Complex || args[1] isa Rational || (args[1] isa Number && !isfinite(args[1]))
498498
minus = args[1] isa Number && args[1] == -1
499499
unit = args[1] isa Number && args[1] == 1
500500
nostar = !paren_scalar && args[1] isa Number && !(args[2] isa Number)

0 commit comments

Comments
 (0)