Removed the weird way to create negatives

You can just press s it's fine
This commit is contained in:
Sasha Koshka 2022-11-25 17:51:24 -05:00
parent cc7d516dbd
commit 7eb2b5ea2f
1 changed files with 0 additions and 7 deletions

View File

@ -193,13 +193,6 @@ func (operation *Operation) inexactSolution () (solution float64, err error) {
}
case OpcodeSubtract:
if len(operation.operands) == 1 {
solution, err = operation.operands[0].InexactSolution()
solution *= -1
if err != nil { return }
break
}
for index, operand := range operation.operands {
subSolution, err = operand.InexactSolution()
if err != nil { return }