freebsd-skq/usr.bin/dc
Alan Somers 0d119bab38 dc(1): fix modulo operations with fractional inputs
Our dc(1) has never correctly calculated remainders with fractional inputs.
Both bmod and bdivmod seem to have copy/pasted code from bdiv, which results
in the remainder having the wrong output scale.

PR:		162495
Reported by:	anonymous
Reviewed by:	pfg
Differential Revision:	https://reviews.freebsd.org/D13390
2017-12-07 02:08:55 +00:00
..
tests dc(1): fix modulo operations with fractional inputs 2017-12-07 02:08:55 +00:00
bcode.c dc(1): fix modulo operations with fractional inputs 2017-12-07 02:08:55 +00:00
bcode.h dc(1): fix input of non-decimal fractional numbers 2017-12-05 04:22:35 +00:00
dc.1 dc(1): fix modulo operations with fractional inputs 2017-12-07 02:08:55 +00:00
dc.c dc(1): Merge minor changes from OpenBSD. 2017-02-26 22:17:06 +00:00
extern.h dc(1): fix input of non-decimal fractional numbers 2017-12-05 04:22:35 +00:00
inout.c dc(1): fix input of non-decimal fractional numbers 2017-12-05 04:22:35 +00:00
Makefile dc(1): fix input of non-decimal fractional numbers 2017-12-05 04:22:35 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mem.c dc(1): fix input of non-decimal fractional numbers 2017-12-05 04:22:35 +00:00
stack.c bc/dc/patch: make some use of reallocarray(3). 2017-03-05 16:10:35 +00:00