Skip to content

Commit be005d6

Browse files
committed
modified printing of midpoint interval boxes
1 parent c9f3281 commit be005d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/display.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ function representation(X::IntervalBox{N, T}, format=nothing) where {N, T}
336336

337337
if format == :full
338338
return string("IntervalBox(", join(X.v, ", "), ")")
339-
339+
elseif format == :midpoint
340+
return string("(", join(X.v, ") × ("), ")")
340341
else
341342
return join(X.v, " × ")
342343
end

0 commit comments

Comments
 (0)