mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation/calculation] Remove redundancy
When each Calculation had its own text buffer, the Expression of an overflowing output text was Undefined. Hence that Expression could have been Undefined without the corresponding text being 'undef'. That situation may not happen anymore since Calculation are stored in a shared buffer.
This commit is contained in:
committed by
Léa Saviot
parent
cb119b796a
commit
2ae435a628
@@ -231,9 +231,8 @@ Calculation::DisplayOutput Calculation::displayOutput(Context * context) {
|
||||
strcmp(exactOutputText(), approximateOutputText(NumberOfSignificantDigits::UserDefined)) == 0
|
||||
||
|
||||
// If the approximate output is 'unreal' or the exact result is 'undef'
|
||||
(strcmp(exactOutputText(), Undefined::Name()) == 0 ||
|
||||
strcmp(approximateOutputText(NumberOfSignificantDigits::Maximal), Unreal::Name()) == 0 ||
|
||||
exactOutput().type() == ExpressionNode::Type::Undefined)
|
||||
strcmp(exactOutputText(), Undefined::Name()) == 0 ||
|
||||
strcmp(approximateOutputText(NumberOfSignificantDigits::Maximal), Unreal::Name()) == 0
|
||||
||
|
||||
/* If the approximate output is 'undef' and the input and exactOutput are
|
||||
* equal */
|
||||
|
||||
Reference in New Issue
Block a user