6.1.0180 . dot CORE

( n -- )

Display n in free field format.

See:

Testing:

ContributeContributions

JohanKotlinskiavatar of JohanKotlinski [273] Suggested reference implementation2023-01-12 08:26:50

A possible implementation:

: . dup abs 0 <# #s rot sign #> type space ;

JohanKotlinskiavatar of JohanKotlinskiNew Version:

Hide differences

A possible implementation:

: . dup abs 0 <# #s rot sign #> type space ;

: . dup abs 0 <# #s rot sign #> type space ;

AntonErtlavatar of AntonErtlNew Version:

Hide differences

A possible implementation:

Now with stack effect comment:

: . dup abs 0 <# #s rot sign #> type space ;
: . ( n -- ) 
    dup abs 0 <# #s rot sign #> type space ;

AntonErtlavatar of AntonErtl

Thanks for your contribution. We will add it to the document when I get around to my editorial duties.

Closing (the committee does not need to look at it again).

Closed
Reply New Version