Dcd

variable = Dcd source

variable Variable to store results. (No String or Single)
source source value

Dcd is the opposite of Ncd. It returns the bit position (counting from one) of the most significant bit that is a 1.

I = Dcd 15 ' Result is 4 since 15 = 0b00001111

Go CUBLOC home