From a2ef7161517133bfc6e41f07e4220253d2bb5b89 Mon Sep 17 00:00:00 2001 From: OlivierHnt <38465572+OlivierHnt@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:31:08 +0100 Subject: [PATCH] Minor typo --- src/display.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display.jl b/src/display.jl index b036b444..5928eac4 100644 --- a/src/display.jl +++ b/src/display.jl @@ -274,7 +274,7 @@ function _str_basic_repr(a::BareInterval{Float16}, format::Symbol) return replace(output, "Float16(NaN)" => "NaN16", "Float16(-Inf)" => "-Inf16", "Float16(Inf)" => "Inf16") elseif format === :midpoint m = mid(a) - str_m = _round_string(mid(a), sigdigits, RoundNearest) + str_m = _round_string(m, sigdigits, RoundNearest) # str_m = ifelse(m ≥ 0, string('+', str_m), str_m) output = string("Float16(", str_m, ") ± Float16(", _round_string(radius(a), sigdigits, RoundUp), ')') return replace(output, "Float16(NaN)" => "NaN16", "Float16(Inf)" => '∞')