摘要
针对在已获得浮点数在内存中的二进制数据的条件下,如何获取浮点数的十进制数据的问题,通过设计一个共用体类型实现内存中浮点数的二进制形式转十进制的快速方法。该方法简单易行,能有效地解决浮点数二进制向十进制的转换遇到的问题。
Under the condition that the binary data of floating point number in the in-memory has been obtained,how to obtain the decimal data of the floating point number is an urgent problem to be solved.To solve this problem,this paper designs a union type to realize the binary conversion of floating point numbers in memory to decimal.This method is simple,easy,and can effectively solve the problem encountered in floating point binary to decimal conversion.
作者
熊帮玲
吴海燕
程洋洋
XIONG Bang-ling;WU Hai-yan;CHENG Yang-yang(School of Electronic and Electrical Engineering,Anhui Sanlian University,Hefei 230601,China)
出处
《辽宁工业大学学报(自然科学版)》
2021年第3期144-147,共4页
Journal of Liaoning University of Technology(Natural Science Edition)
基金
安徽高校自然科学项目(KJ2020A0810)
安徽三联学院自然科研基金重点项目(KJZD2021001)
2020高校优秀青年人才支持计划项目一般项目(gxyq2020082)。