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


D* Search:

In Math Words in 32-bit library

Word Name: D*
Type: Standard word
Data Stack Signature: d:x d:y -- d:x*y
Return Stack Signature: --
Availability: V1.2
Description:

Performs a signed multiplication of x and y.

Example:

 2468123.  99. D* D. (displays 244344177)
-2468123.  99. D* D. (displays -244344177)
 2468123. -99. D* D. (displays -244344177)
-2468123. -99. D* D. (displays 244344177)

Comment:

Because x and y are treated as signed, they only have 31 bits of magnitude. The most significant bit is interpreted as the sign bit.

See Also: * 

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