%DEC of a division, a short target of a trimmed assignment, more edit masks #613
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-n-dec-expr-20261023"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%DEC of a division, a short target of a trimmed assignment, more edit masks
rpg_eval.zig:%DEC(a / c: D: P)of a division: the dividend isscaled to P positions (
61 (10+P) P 0, absent when P is 0) and thedivision gives D digits (
56 D 0 0, D under 63); the default precision is63 digits with a rescale after it. Measured on
h-editc5(every (D, P)pair of the sweep) and
h-editc6(new probes, from the dictionarybatteries of the loop tooling). The exam's largest open family has this
shape under
%TRIM(%EDITC(...))into a short field.rpg_trim.zig: the trimmed assignment to a target shorter than thesource copies min(W, N) bytes (an inserted block with two labels and a
third temporary);
h-editc3(new probe) statement 30, a char(5) target.rpg_editc.zig: 14 more measured masks (digits 11 with 3 positions, allcodes;
h-editc5,h-editc6).Gates