mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/calculation] Comment why shouldOnlyDisplayExactOutput is needed
This commit is contained in:
@@ -151,6 +151,8 @@ bool Calculation::shouldOnlyDisplayApproximateOutput(Context * context) {
|
||||
}
|
||||
|
||||
bool Calculation::shouldOnlyDisplayExactOutput() {
|
||||
/* If the input has a "sto", we do not want to display the approximate output.
|
||||
* This prevents x->f(x) from displaying x RoundEqual undef. */
|
||||
return strchr(m_inputText, Ion::Charset::Sto) != nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user