Lines Matching +full:over +full:- +full:current +full:- +full:scale +full:- +full:factor
3 .\" Copyright (C) Caldera International Inc. 2001-2002.
35 .EH 'USD:5-%''DC \- An Interactive Desk Calculator'
36 .OH 'DC \- An Interactive Desk Calculator''USD:5-%'
38 .\" ....TM 75-1271-8 39199 39199-11
41 DC \- An Interactive Desk Calculator
42 .AU "MH 2C-524" 3878
52 time-sharing system to do arbitrary-precision
54 It has provision for manipulating scaled fixed-point numbers and
71 The current version of DC uses a different approach.
77 time-sharing system
85 programs written in the familiar style of higher-level
92 Numbers that are typed into DC are put on a push-down
109 Blanks and new-line characters are ignored except within numbers
117 A number is an unbroken string of the digits 0-9
118 and the capital letters A\-F which are treated as digits
119 with values 10\-15 respectively.
124 + \- * % ^
130 (\fB\-\fP),
157 Any character, even blank or new-line, is a valid register name.
274 a scale factor
277 The scale factor must be greater than or equal to zero and
279 If \fBk\fP is capitalized, the value of the scale factor
299 The string is stored with the low-order digit at the
304 that all digits are in the range 0\-99 and that
311 The high order digit of a negative number is always \-1
312 and all other digits are in the range 0\-99.
313 The digit preceding the high order \-1 digit is never a 99.
314 The representation of \-157 is 43,98,\-1.
330 where the scale has been italicized to emphasize the fact that it
334 scale factor
344 Associated with each string in the allocator is a four-word header containing pointers
361 Left-over strings are put on the free list.
380 forward-spacing, and backspacing strings.
388 information-containing portion of a string and a call
389 to read beyond that point returns an end-of-string indication.
399 from the main stack and their scale factors stripped off.
402 For example, if the scale of the operands is different and decimal
405 scale.
407 the proper scale factor is appended to the end of the number before
410 A register called \fBscale\fP plays a part
412 \fBscale\fP is the bound on the number of decimal places retained in
414 \fBscale\fP may be set to the number on the top of the stack
416 \fBK\fP may be used to push the value of \fBscale\fP on the stack.
417 \fBscale\fP must be greater than or equal to 0 and less than 100.
419 include the exact effect of \fBscale\fP on the computations.
424 zeros are supplied to the number with the lower scale to give both
425 numbers the same scale. The number with the smaller scale is
427 The scale of the result is then set to the larger of the scales
438 replacing the high-order configuration 99,\-1 by the digit \-1.
439 In any case, digits which are not in the range 0\-99 must
457 The scale of the result is set equal to the sum
459 If that scale is larger than the internal register
461 scale
464 then the scale of the result is set equal to the largest
471 the scale of the result of the integer division equal to
473 \fBscale\fP.
483 The result is used as the first (high-order) digit of the
503 The scale of the remainder is set to
504 the maximum of the scale of the dividend and
505 the scale of the quotient plus the scale of the divisor.
509 The scale is stripped from the operand.
511 integer result have a scale that is the larger of
513 \fBscale\fP
514 and the scale of the operand.
519 x sub {n+1} ~=~ half ( x sub n + y over x sub n )
526 Only exponents with zero scale factor are handled. If the exponent is
528 it is made positive and the base is divided into one. The scale
534 correspond to the positions of the one-bits in the binary
537 are removed to make the scale of the result the same as if the
544 The scale stored with a number is simply the number of fractional digits input.
547 The hexadecimal digits A\-F correspond to the numbers 10\-15 regardless of input base.
579 Bases of 8 and 16 can be used for decimal-octal or decimal-hexadecimal
600 with its scale factor.
609 Internal Registers \- Programming DC
619 For example, to print the numbers 0-9,
625 Push-Down Registers and Arrays
629 They involve push-down registers and arrays.
637 The commands \fBs\fP and \fBl\fP also work on registers but not as push-down
682 The reason for a stack-type arithmetic design was
689 The rationale for the lack of interaction between the scale and the bases
691 a change of base or scale when numbers had already been entered.
693 scale and base did not work out well.
696 scale
698 were to be interpreted in the current
700 then a change of base or scale in the midst of a
703 The current scheme has the advantage that the value of
708 scale
727 unless the user asked for them by specifying a value for \fBscale\fP.
733 specify a \fBscale\fP to get any decimal places at all.
735 The scale of remainder was chosen to make it possible
743 BC \- An Arbitrary Precision Desk-Calculator Language.
750 Comm. ACM \fB8\fP, pp. 623-625 (Oct. 1965).