2진수 문자열을 16진수 문자열로 변환합니다.

 

Return Type : string

Function Name :  gf_bin2hex

Argument Type : string   Argument Name : as_bin

 

string ls_hex

 

ls_hex = gf_dec2hex(gf_bin2dec(as_bin), len(as_bin) / 8)

 

return ls_hex




gf_bin2dec 는 ‘2진수 문자열을 10진수 숫자로 변환’ 문서 참고

gf_dec2hex 는 ‘10진수 숫자를 16진수 문자열로 변환’ 문서 참고

 

예) 

gf_bin2hex('11110000')

 

->  ‘F0’ 를 반환합니다.

 

Posted by A4M
,