Forth
Standard
Proposals
Packages
Login
Login/Sign up
Login/Sign up
Search
Search
8 The optional Double-Number word set
DABS
D.R
D=
DMAX
DMIN
D-
DNEGATE
D+
D2/
D2*
DU<
D0=
D0<
D.
D<
D>S
M+
M*/
2CONSTANT
2LITERAL
2ROT
2VALUE
2VARIABLE
8.6.1.1230
DNEGATE
d-negate
DOUBLE
(
d
1
--
d
2
)
d
2
is the negation of
d
1
.
Testing:
T{ 0.
DNEGATE
-> 0. }T
T{ 1.
DNEGATE
-> -1. }T
T{ -1.
DNEGATE
-> 1. }T
T{ max-2int
DNEGATE
-> min-2int
SWAP
1+
SWAP
}T
T{ min-2int
SWAP
1+
SWAP
DNEGATE
-> max-2int }T
Contribute
Contributions