Directory
Code Restoration Technology
I. Introduction code Restoration
Ii. Data Type representation in code Restoration
1. Integer type
2. unsigned integer
3. signed integer
4. Floating Point Data Type
5.
If you want to be super God, you must be fine!Knowledge Preparation: 1. 16 binary form of the output floating point number? (with pointer output)Converts floating-point pointer-to-integer pointer to output the pointer content in 16-binary
Python standard library: built-in functions hex (x) and pythonhex
This function is used to convert a hexadecimal string representation of an integer object, such as the 0x format. If the object is not an integer, define a method ___ index _ () to
This function converts a string representation of an integer object to 16, such as a format like 0x . If the object is not an integer, a method ___index__ () should be defined to return an integer. If you want to convert the result of this function
In printf: If output is in%f format, 8 bytes will be output (scanf input,%f is 4 bytes)When the parameter is in the stack if it is a float type or double directly into the stack 8 bytes, the output and subsequent output is no problemHowever, if the
Integer type (range unlimited)Decimal 1-1Binary 0b1-0b1Octal 0o1-0o1Hex 0x1-0x1Floating-point type (limited in scope but negligible) an indeterminate mantissa is present in the operation:0.1+0.2!=0.3Cause: Binary means that decimals can be
1. Recently doing some sqlite3 things, defined a blob type of field, want to put double-precision floating point in here, so the strange thing happened. Double precision floating point number 13.46, hex 402A EB85 1eb8 51EC, but sqlite inside data is
Example:PrintHex (), Hex (-20)#Convert to hexadecimalPrintOct (+), Oct (-20)#Convert to octalPrintBin (+), Bin (-20)#convert to BinaryPrintint"Literal value", in-System)#Convert integral typePrintFloat"Literal value")#convert floating point
Identifier:Start with a letter, underscore (_), dollar sign ($)You cannot use keywordsCase sensitiveYou can divide int a = 1_0000_0000_1121 with an underscore;Data type:int defaults to decimal, octal starts with 0, Hex starts with
Int (x [, base]) converts x to an integer long (x [, base]) and converts x to a long integer float (x) convert x to a floating point complex (real [, imag]) to create a plural str (x). Convert x to a string repr (x) convert object x to expression
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.