<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Math Words in 32-bit library
Arithmetically shifts the double value x one bit position to the right, hence dividing the value by 2.
123456. D2/ D. (displays 61728) -123456. D2/ D. (displays -61728)
123456. D2/ D.
-123456. D2/ D.
Since the shift is an arithmetic shift the sign of the value is maintained.