Lines Matching +full:input +full:- +full:value
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
55 for input and output in bases other than decimal.
77 time-sharing system
81 specify an input base, output base, and a number of fractional
85 programs written in the familiar style of higher-level
92 Numbers that are typed into DC are put on a push-down
98 input is taken from that file until its end,
99 then from the standard input.
109 Blanks and new-line characters are ignored except within numbers
116 The value of the number is pushed onto the main stack.
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.
120 The number may be preceded by an underscore _ to input a
124 + \- * % ^
130 (\fB\-\fP),
156 is treated as a stack and the value is pushed onto it.
157 Any character, even blank or new-line, is a valid register name.
162 value in register
181 is treated as a stack and its top value is popped onto the main stack.
183 All registers start with empty value which is treated as a zero
189 top value on the stack is duplicated.
193 The top value on the stack is printed.
194 The top value remains unchanged.
220 the top value on the stack is popped and the string execution level is popped
221 by that value.
257 The top value on the stack is popped and used as the
258 number radix for further input.
259 If \fBi\fP is capitalized, the value of
260 the input base is pushed onto the stack.
261 No mechanism has been provided for the input of arbitrary
266 The top value on the stack is popped and used as the
268 If \fBo\fP is capitalized, the value of the output
273 The top of the stack is popped, and that value is used as
279 If \fBk\fP is capitalized, the value of the scale factor
284 The value of the stack level is pushed onto the stack.
288 A line of input is taken from the input source (usually the console)
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.
332 The value of this extra byte is called the
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.
416 \fBK\fP may be used to push the value of \fBscale\fP on the stack.
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
483 The result is used as the first (high-order) digit of the
534 correspond to the positions of the one-bits in the binary
540 Input Conversion and Base
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.
548 The \fBi\fP command can be used to change the base of the input numbers.
550 and uses it as the input base for all further input.
551 The input base is initialized to 10 but may, for example be changed to
553 The command \fBI\fP will push the value of the input base on the stack.
566 The command \fBO\fP pushes the value of the output base on the stack.
570 The input and output bases only affect
571 the interpretation of numbers on input and output; they have no
575 All choices of input and output bases work correctly, although not all are
579 Bases of 8 and 16 can be used for decimal-octal or decimal-hexadecimal
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.
633 \fBS\fIx\fR pushes the top value of the main stack onto the stack for
637 The commands \fBs\fP and \fBl\fP also work on registers but not as push-down
643 \fB:\fIx\fR pops the stack and uses this value as an index into
649 The value on the top of the stack is the index
650 into the array \fIx\fP of the value to be loaded.
667 The allocator has some value for input and for compiling (i.e.
682 The reason for a stack-type arithmetic design was
694 If the value of
699 input or output base,
703 The current scheme has the advantage that the value of
704 the input and output bases
705 are only used for input and output, respectively, and they
707 The value of
727 unless the user asked for them by specifying a value for \fBscale\fP.
743 BC \- An Arbitrary Precision Desk-Calculator Language.
750 Comm. ACM \fB8\fP, pp. 623-625 (Oct. 1965).