Floating-point number processing method, apparatus and device, and computer readable storage medium
A processing method and floating-point number technology, applied in the computer field, can solve problems such as error-prone, time-consuming, and low-efficiency, and achieve the effect of improving accuracy and efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] figure 2 It is a flow chart of the floating-point number processing method provided by Embodiment 1 of the present invention. The embodiment of the present invention is aimed at the method for obtaining floating-point decimal data in the prior art. It is necessary for a technician to extract the values of the sign bit, the exponent field and the mantissa field from the binary data of the floating-point number manually or through programming, and then complete the above-mentioned For the more complex calculation process, which is very error-prone, time-consuming, and inefficient, a floating-point number processing method is provided.
[0037] The method in this embodiment is applied to a central processing unit, which may be a microprocessor or the like.
[0038] like figure 2 As shown, the specific steps of the method are as follows:
[0039] Step S101 , according to the floating-point type of the floating-point number, determine a community variable correspondin...
Embodiment 2
[0061] image 3 It is a flow chart of the floating-point number processing method provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, community variables corresponding to each floating-point type may be created in advance. like image 3 As shown, the specific steps of the method are as follows:
[0062] Step S201, creating community variables corresponding to each floating point type.
[0063] Floating-point numbers can be a single-precision floating-point number type, a double-precision floating-point number type, or a floating-point vector type. Among them, the floating-point vector is a sequence of N single-precision floating-point numbers, where N is a positive integer, and N is greater than or equal to 2.
[0064] In this embodiment, community variables corresponding to each floating-point type can be created in advance. The community variable includes a floating-point member variable and an integer member...
Embodiment 3
[0107] Figure 4 It is a schematic structural diagram of a floating-point number processing device provided by Embodiment 3 of the present invention. The floating-point number processing device provided in the embodiment of the present invention can execute the processing flow provided in the embodiment of the floating-point number processing method. like Figure 4 As shown, the floating-point number processing device 30 includes: a community processing module 301 , an assignment module 302 and a printing module 303 .
[0108] Specifically, the community processing module 301 is configured to determine a community variable corresponding to the floating-point type according to the floating-point type of the floating-point number, and the community variable includes a floating-point member variable and an integer member variable.
[0109] Assignment module 302, configured to assign the binary data of the floating point number to the integer member variable of the community var...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com