|
-
Dec 6th, 2000, 08:34 AM
#1
Thread Starter
Lively Member
Does anybody have any routines for emulating a left-shift on a number as per the C "<<" operator.
I think I have successfully replicated the right-shift but do not seem to be abe to get the left shift working properly.
-
Dec 6th, 2000, 08:45 AM
#2
Fanatic Member
Do you mean bit-shifting for numbers (x/2) or strings(rotl and rotr in asm?)?
-
Dec 6th, 2000, 09:04 AM
#3
Thread Starter
Lively Member
-
Dec 6th, 2000, 09:06 AM
#4
Fanatic Member
Can't you do something like this?
Code:
Dim Number As Double
Number = 1000
'bit shift?
Number = Number / 2
-
Dec 6th, 2000, 09:16 AM
#5
Thread Starter
Lively Member
This does not always replicate the functions correctly and therefore does not alays return the correct value.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|