Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rounding constant in printing #3339

Closed
blegat opened this issue May 2, 2023 · 0 comments · Fixed by #3341
Closed

Rounding constant in printing #3339

blegat opened this issue May 2, 2023 · 0 comments · Fixed by #3341

Comments

@blegat
Copy link
Member

blegat commented May 2, 2023

We should probably call _string_round here:

JuMP.jl/src/print.jl

Lines 660 to 679 in e87f315

function in_set_string(mode::MIME, set::MOI.LessThan)
return string(_math_symbol(mode, :leq), " ", set.upper)
end
function in_set_string(mode::MIME, set::MOI.GreaterThan)
return string(_math_symbol(mode, :geq), " ", set.lower)
end
function in_set_string(mode::MIME, set::MOI.EqualTo)
return string(_math_symbol(mode, :eq), " ", set.value)
end
function in_set_string(::MIME"text/latex", set::MOI.Interval)
return string("\\in \\[", set.lower, ", ", set.upper, "\\]")
end
function in_set_string(mode::MIME"text/plain", set::MOI.Interval)
in = _math_symbol(mode, :in)
return string("$in [", set.lower, ", ", set.upper, "]")
end

See #3332 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant