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


DNEGATE Search:

In Math Words in 32-bit library

Word Name: DNEGATE
Type: Standard word
Data Stack Signature: d:x – d:-x
Return Stack Signature: --
Availability: V1.2
Description:

Negates the double value on the stack

Example:

 123456. DNEGATE D. (displays -123456)
-123456. DNEGATE D. (displays 123456)

Comment:

Negates the double value on the stack, making it negative if it is currently positive, or positive if it is currently negative.
 

See Also: NEGATE 

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