Original: http://www.2cto.com/database/201310/250880.htmlSQL cast and CONVERT usage detailed Summary: The following applies only to Mysqlselect {fn CONCAT (CONVERT (User_id,char), user_name)} as Str from T_SYS_ User following this applies only to
hexadecimal to decimalUsing the Int () function, the first argument is the string ' 0Xff ', the second argument is the description, and the string is a number of binary numbers. The result of the conversion is a decimal number.>>> int (' 0xf ', 16)15
C # its built-in X-in conversion function is as follows:
// Convert decimal to binaryConsole. WriteLine (Convert. ToString (69, 2 ));// Convert decimal to octalConsole. WriteLine (Convert. ToString (69, 8 ));// Convert decimal to hexadecimalConsole.
hexadecimal to decimalUsing the Int () function, the first argument is the string ' 0Xff ', the second argument is the description, and the string is a number of binary numbers. The result of the conversion is a decimal number.>>> int (' 0xf ', 16)15
// Convert it to binary console in decimal format. writeline (convert. tostring (69, 2); // convert it to octal console in decimal format. writeline (convert. tostring (69, 8); // convert to hexadecimal console in decimal format. writeline (convert.
The core of JavaScript color conversion is the transformation between transitions. RGB format is actually decimal notation, so the hexadecimal color and RGB color conversion is hexadecimal and decimal conversion between.
16 conversion to decimal is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.