Created attachment 8291 [details] Fix a bug in comparing negative numbers Hi, There's a bug in comparing negative numbers via bc calculator. When the number of significant figures differs it gives the wrong result. $ bc bc 1.32.0.git Adapted from https://github.com/gavinhoward/bc Original code (c) 2018 Gavin D. Howard and contributors -11 < -10 1 -10 < -9 0 The patch is trivial (attached). The original code by Gavin Howard has this bug as well, hopefully it will be fixed soon (pull request submitted). Regards, Eugene Gladchenko
We should also add a test for this in the testsuite.
Fixed in git, thanks