Abstract
The rounding errors of floating-point operations are inevitable in computers or microprocessors, and this issue will make the calculation results inaccurate, unreliable, or even completely incorrect. For this purpose, this paper proposes to replace floating-point operations with integer operations to improve the operation precision. The key lies in not only controlling the variable type as the integer to avoid the automatic conversion of intermediate operation results into floating-point numbers but also converting floating-point operations in the operation process into integer operations using some numerical calculation methods. Lock-in amplifier is one of the most widely used instruments in the field of weak signal detection. This paper only takes the digital lock-in amplifier (DLIA) as an example for detailed analysis and proposes a DLIA based on integer calculation. The experimental results show that replacing floating-point operations with integer operations can obtain higher operation precision without "wasting" memory, and the improvement will be more significant as the calculation amount increases. The research will help to further improve the calculation accuracy of digital signal processing and other scientific computations in computers or microprocessors.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.