Skip to content

Commit

Permalink
Minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Dec 8, 2024
1 parent 6141c47 commit a2ef716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)" => '')
Expand Down

0 comments on commit a2ef716

Please sign in to comment.