<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


.DS Search:

In Double-Precision Numeric Display Words in 32-bit library

Word Name: .DS
Type: Standard word
Data Stack Signature: --
Return Stack Signature: --
Availability: V1.2
Description:

Displays the contents of the stack, interpreting the contents of the stack (by default) as signed double values.

Example:

123456. 99. 41. 102938475. .DS

(displays 123456 99 41 102938475)

Comment:

.DS is non-destructive; i.e. the contents of the stack do not change.

Note that the actual routine to call to physically display the values is vectored via _D.. Thus the display mode can be changed by ticking the appropriate display word (e.g. D. D$. etc.) and storing the address in _D.. For example, .DS can be modified to display the values as hex values by default by 'ticking' D$. and storing its execution address in _D. as follows:

' D$. TO _D.
123456. 99. 41. 102938475. .DS

(displays 1E240 63 29 622B76B <--TOP)

See Also: .S 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>