Transfer decimal into binary functions

xiaoxiao2021-03-06  63

Function zhuan (m) 'translation data

For i = 0 TO 12

P = M mod 2

IF P = 1 THEN

Have = Have & I & ","

END IF

m = int (m / 2)

IF m = 0 THEN

Zhuan = Have

EXIT FUNCTION

END IF

NEXT

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-111355.html

New Post(0)