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


Words in category Math Words in glossary 32-bit library

Search:
The following words are listed in this category (15 words found): Word Types: S = Standard, I = Immediate , IC = Immediate-compiling.
Word Name Word Type Data Stack Signature Return Stack Signature Description Availability
V1.0 V1.1 V1.2
D- S d:x d:y – d:x-y -- Performs a signed subtraction of the double values y from x, yielding a double result.
 
D* S d:x d:y -- d:x*y -- Performs a signed multiplication of x and y.
D/ S d:dividend d:divisor – d:remainder d:quotient -- Performs a signed division, dividing the divisor into the dividend, returning a double quotient and double remainder.
 
D+ S d:x d:y – d:x+y -- Performs a signed addition of the double values x and y, yielding a double result.
 
D<< S ud:x s:count – d:y -- Performs a logical shift of the double value x on the stack left by count bits, yielding the unsigned double value y.
D>> S  ud:x s:count – d:y -- Performs a logical shift of the double value x right by count bits, yielding the double value y.
D1- S d:x – d:x-1 -- Subtracts 1 from the double value on the stack.
D1+ S d:x – d:x+1 -- Adds 1 to the double value on the stack.
D2- S d:x – d:x-2 -- Subtracts 2 from the double value on the stack.
D2/ S d:x – d:x/2 -- Arithmetically shifts the double value x one bit position to the right, hence dividing the value by 2.
D2+ S d:x – d:x+2 -- Adds 2 to the double value on the stack.


 
DABS S d:x – abs(d:x) -- Converts the double value on the stack to its absolute value.
DNEGATE S d:x – d:-x -- Negates the double value on the stack
DU* S ud:x ud:y -- d:x*y -- Performs an unsigned multiplication of the double values x and y, yielding an unsigned-double result.
DU/ S ud:dividend ud:divisor -- ud:remainder ud:quotient -- Performs an unsigned division of the double divisor into the double dividend, leaving an unsigned-double quotient and unsigned-double remainder.


 

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