Removed the weird way to create negatives
You can just press s it's fine
This commit is contained in:
parent
cc7d516dbd
commit
7eb2b5ea2f
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user