Data storage device and data determination device
A data storage device and storage bit technology, applied in the computer field, can solve the problems of floating-point storage storage space and power consumption waste, and achieve the effects of improving storage accuracy and reducing waste.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0186] The following describes the steps for storing the decimal -5.12 using the data storage device provided by the present invention.
[0187] Here, the data storage device includes 24 binary bits, that is, 3 bytes; wherein, the highest bit is the sign bit, the integer length bits are fixed at 6 bits, and the decimal length bits are fixed at 6 bits. The integer part (decimal digits) corresponds, the decimal storage bit corresponds to the fractional part (decimal digits) of the value V, and the rest is stuffing bits, and the length of the stuffing bits is variable.
[0188] 1) According to the fact that -5.12 is a negative number, it is determined that the value of the sign bit located at the highest bit (bit index is n-1) is 1.
[0189] 2) The integer part is (5), and the binary representation of (5) in decimal is 101; the length of binary 101 is 3 bits (binary bits), and the binary representation of (3) is 11, so the integer length of 6 bits is fixed The value of the bit i...
Embodiment 2
[0200] The following description adopts the data acquisition device provided by the present invention to obtain the decimal value of the target number X stored in the memory of the computing device: 00000001 10000101 11111111 11111111 11111111 11111111 11111111 11111000. As listed in Table 4, the target number X occupies 8 bytes of memory in the computing device, that is, 64 bits of storage space. It can be predetermined that the target number X includes 1 sign bit, 6 integer length bits, and 6 fractional length bits.
[0201] Table 4 Example of the storage method of the target number X in the computer
[0202]
[0203]
[0204] 1), extract the numerical value of sign bit, determine that the numerical value of sign bit is 0, so target number X is a positive number;
[0205] 2), extracting the value of the integer length bit whose length is fixed to 6 is determined to be 000000, then the number of integer length bits is zero, that is, in the storage space, the number of ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com