Glossary

Trace of the bug:

For -150: `1 + 100/(-150)` = `1 - 0.6667` = `0.3333` (wrong; should be 1.6667) - For +200: `1 + 200/100` = `3.0` (correct) - Combined: `0.3333 * 3.0` = `1.0` (wrong; should be 5.0)

Learn More

Related Terms