Closed dankamongmen closed 4 years ago
If we really want to do this right, we want to use fegetround() to get the current rounding mode, and honor that (there are four). In the meantime, I've changed the unit test to explicitly used FE_TOWARDZERO so it passes.
I've removed this functionality from outcurses.
I've added a new test, PowerOfTwoAsTen, which runs powers of two against a mult of 1000 in prefix(). I test against %.2g output. This has demonstrated that we always truncate output rather than rounding, which I don't think is desirable. Go ahead and round to nearest number instead.