Difference between revisions of "User:PROXiCiDE/MathUtil"
Jump to navigation
Jump to search
m
→Bit Code
imported>PROXiCiDE m (Categorized / Added Example for Bit Manipulation) |
imported>PROXiCiDE m (→Bit Code) |
||
Line 137: | Line 137: | ||
; i = Bit_Set(i,5) = 101010000000000000000000000000 | ; i = Bit_Set(i,5) = 101010000000000000000000000000 | ||
Int Function Bit_MakeByte(Int aiIndex = 1) | Int Function Bit_MakeByte(Int aiIndex = 1) | ||
Int iPos = aiIndex % 30 | Int iPos = aiIndex % 30 | ||
Return Math.LeftShift(1, iPos) | |||
EndFunction | EndFunction | ||