[apps/calculation] Comment why shouldOnlyDisplayExactOutput is needed

This commit is contained in:
Léa Saviot
2018-11-14 17:42:01 +01:00
committed by Émilie Feral
parent 658485c197
commit 789d17189e

View File

@@ -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;
}