Làm thế nào tôi có thể chuyển đổi điều này:
9312660682897061594767289296453011313180604726492752614962349778735928598708212386406555876878916185094145420038141655929349984786756296776268556142401047
trong cơ sở 16?
Tôi đã tìm thấy chức năng đệ quy này:
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
Nhưng mức độ làm tổ của 100 là đạt được, ngay cả khi tôi có xdebug.max_nesting_level = 1000 trong tệp cấu hình php.ini của tôi.
Cấu hình xdebug của tôi trông như thế này:
;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
Ai đó có một chức năng khác với bất kỳ gợi ý nào về cách tôi có thể chuyển đổi số nguyên này không?
Cảm ơn!
detrate tại hotmail dot com Gabriel Reguly ¶ — Hexadecimal to decimal Giám mục ¶[string zubfatal, root tại IT DOT DK ¶ will ignore any non-hexadecimal characters it encounters. As of PHP 7.4.0 supplying any invalid characters is deprecated. Maddddidley tại Yahoo Dot Com ¶ 19 năm trước Groobo ¶hexdec[] example Maddddidley tại Yahoo Dot Com ¶: andreas.schmeiler ¶int type, larger values are returned as float in that case. 12 năm trước ¶ Cory tại Lavacube Dot Com ¶17 năm trước
$hex_string
]: int|floatGroobo ¶
this1is4me tại hotmail dot com ¶andreas.schmeiler ¶
Ayadav tại Infoprocorp Dot Com ¶
Andy tại Haveland dot com ¶17 năm trước 7.4.0 Giám mục ¶ zubfatal, root tại IT DOT DK ¶
this1is4me tại hotmail dot com ¶
19 năm trước
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
For eg: #FFF and #FFFFFF will produce the same result
0function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
1function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2detrate tại hotmail dot com ¶
Gabriel Reguly ¶
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
3function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
4function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
217 năm trước ¶
Cory tại Lavacube Dot Com ¶
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
6function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
7function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2detrate tại hotmail dot com ¶
Repley tại Freemail Dot it ¶
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
9;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
0;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
1;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
2;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
3;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
416 năm trước ¶
Cory tại Lavacube Dot Com ¶
;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
5;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
6;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
7;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
8detrate tại hotmail dot com ¶
14 năm trước
;Xdebug
zend_extension = "${path}\php\php546x121216181946\php_xdebug-2.2.1-5.4-vc9.dll"
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
xdebug.max_nesting_level = 1000
;/Xdebug
9$hex_string
0
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Gabriel Reguly ¶ ¶
Cory tại Lavacube Dot Com ¶
$hex_string
2
$hex_string
3
$hex_string
4
$hex_string
5Ẩn danh ¶ ¶
Repley tại Freemail Dot it ¶
$hex_string
6
$hex_string
7
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
216 năm trước ¶
14 năm trước
$hex_string
9
hex_string
0
hex_string
1
hex_string
2
hex_string
3
hex_string
4
hex_string
5
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Cory tại Lavacube Dot Com ¶ ¶
Gabriel Reguly ¶
hex_string
7
hex_string
8
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
217 năm trước ¶
Cory tại Lavacube Dot Com ¶
hex_string
0
hex_string
1
hex_string
2
hex_string
3
hex_string
4
hex_string
5
hex_string
6
hex_string
7detrate tại hotmail dot com ¶
Cory tại Lavacube Dot Com ¶
hex_string
8
hex_string
9
0helpmedalph tại gmail dot com ¶ ¶
6 năm trước
1
Chrism ở bốn điểm ròng ¶ ¶
20 năm trước
2
3
4
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Joquius tại Kakugo Dot Com ¶ ¶
14 năm trước
6
7
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Ẩn danh ¶ ¶
14 năm trước
9
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
0
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
1
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Ẩn danh ¶ ¶
Manithu ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
3
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
4
15 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
5 ¶
Manithu ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
7
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
8
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
215 năm trước ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
5
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
0
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
1
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
2
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
3Cgarvis tại Gmail Dot Com ¶ ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
5
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
4
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
5
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
6
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
7Cgarvis tại Gmail Dot Com ¶ ¶
Use this function to convert a hexa decimal color code to its RGB equivalent. Unlike many other functions provided here, it will work correctly with hex color short hand notation.
5
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
8
Also, if a proper hexa decimal color value is given [6 digits], it uses bit wise operations for faster results.
9
For eg: #FFF and #FFFFFF will produce the same result
0
For eg: #FFF and #FFFFFF will produce the same result
1
For eg: #FFF and #FFFFFF will produce the same result
2Cgarvis tại Gmail Dot Com ¶ ¶
Repley tại Freemail Dot it ¶
For eg: #FFF and #FFFFFF will produce the same result
3
For eg: #FFF and #FFFFFF will produce the same result
4
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
216 năm trước ¶
Repley tại Freemail Dot it ¶
For eg: #FFF and #FFFFFF will produce the same result
6
For eg: #FFF and #FFFFFF will produce the same result
7
For eg: #FFF and #FFFFFF will produce the same result
8
For eg: #FFF and #FFFFFF will produce the same result
916 năm trước ¶
Repley tại Freemail Dot it ¶
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
00function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
01function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
02function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
03function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
0416 năm trước ¶
Repley tại Freemail Dot it ¶
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
05function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
06function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
216 năm trước ¶
14 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
08function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
09function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
10function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
11function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Ẩn danh ¶ ¶
14 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
13function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
14function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
15function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
16function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
17function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
18function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
19function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
20function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2andreas.schmeiler ¶ ¶
19 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
22function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
23function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
24function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
25function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Ayadav tại Infoprocorp Dot Com ¶ ¶
16 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
27function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
28function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
29function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
30function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
31function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
32function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2Andy tại Haveland dot com ¶ ¶
11 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
34function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
35function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
36function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
37Rosberg - Rosberglinhares tại Gmail Dot Com ¶ ¶
12 năm trước
function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
38function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
39function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
40function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
41function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
42function bcdechex[$dec] {
$last = bcmod[$dec, 16];
$remain = bcdiv[bcsub[$dec, $last], 16];
if[$remain == 0] {
return dechex[$last];
} else {
return bcdechex[$remain].dechex[$last];
}
}
2