Input/Output:

Level 1/Argument 1

Level 1/Item 1

 

 

« program » or 'program name'

 

 

 

See also:

HALT, NEXT

DDAYS

Type: Command

Description: Delta Days Command: Returns the number of days between two dates.

If the argument 1/level 2 date is chronologically later than the argument 2/ level 1 date, the result is negative. The range of allowable dates is October 15, 1582, to December 31, 9999.

Access:

…ÓTOOLS LDDAYS

( Óis the right-shift of the 9 key).

 

&9LDDAYS

 

 

 

Flags:

Date Format (–42)

 

 

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

date1

date2

xdays

 

 

 

 

 

 

See also:

DATE, DATE+

 

 

 

 

 

 

 

 

 

DEC

Command

 

 

 

Type:

 

 

 

Description: Decimal Mode Command: Selects decimal base for binary integer operations. (The default base is decimal.)

Binary integers require the prefix #. Binary integers entered and returned in decimal base automatically show the suffix d. If the current base is not decimal, then you can enter a decimal number by ending it with d. It will be displayed in the current base when it is entered.

The current base does not affect the internal representation of binary integers as unsigned binary numbers.

Access:

BASE DEC

( ´is the left-shift of the Pkey).

 

BASE DEC

( Ú is the left-shift of the 6key).

Flags:

Binary Integer Wordsize (–5 through –10), Binary Integer Base (–11, –12)

Input/Output:

None

 

 

See also:

BIN, HEX, OCT, RCWS, STWS

 

 

 

 

 

 

 

DECR

Command

 

 

Type:

 

 

Description:

Decrement Command: Takes a variable, subtracts 1, stores the new value back into the original

 

variable, and returns the new value. The contents of name must be a real number or an integer.

Access:

MEMORY ARITHMETIC DECR( °is the left-shift of the Nkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

Level 1/Argument 1

Level 1/Item 1

 

 

 

 

 

 

 

'name'

xnew

 

 

 

 

Example 1:

If 35.7 is stored in A, 'A' DECR returns 34.7.

 

Example 2:

The following program counts down from 100 to 0 and leaves the integers 100 to 0 on the stack:

«100 'A' STO WHILE A REPEAT 'A' DECR END 'A' PURGE »

See also: INCR, STO+, STO–

Full Command and Function Reference 3-51