We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9421e01 commit 522eec3Copy full SHA for 522eec3
src/multiply/multiply.cpp
@@ -104,6 +104,8 @@ namespace steppable::__internals::arithmetic
104
if (steps == 2)
105
out << "Since " << b << " is a power of 10, we can move the decimal places to obtain the result.\n";
106
auto result = moveDecimalPlaces(a, determineScale(b));
107
+ if (resultIsNegative)
108
+ result = "-" + result; // NOLINT(performance-inefficient-string-concatenation)
109
110
out << result;
111
return out.str();
0 commit comments