https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206230
Alan Somers <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Alan Somers <[email protected]> --- The problem is simpler than you suggest. It looks like fractional input doesn't work correctly when the input base is 16. Try this: $ dc -xe 16i0.1p 0.0 $ dc -xe 16i0.8p .5 $ dc -xe 16i0.4p .2 The first and third results are wrong, and the second result is correct. I get the same results with both the FreeBSD and the GNU versions of both bc(1) and dc(1). I suspect the problem is that some number is being treated as an integer in units of base^n for n < 0 _before_ conversion to a bignum. That would explain these three results, for n=-1. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
