Generalised floating point addition: Difference between revisions

m
m (→‎{{header|Tcl}}: More notes)
Line 612:
 
do j=-7 to 21 /*traipse through the test cases.*/
reps=reps+1 /*increase number of repititionsrepetitions.*/
BCD.j=strip(copies(_123,reps)'^'mult,'L',0) /*construct zoned BCD.*/
if j//3==0 then BCD.J='+'BCD.j /*add a leading + sign every 3rd#*/
Line 626:
end /*j*/
 
say copies('═',maxW) /*display a fence for seperationseparation.*/
times=81 /*the number of times to add it. */
 
2,293

edits