摘要
针对不同类型浮点数表示不尽相同,不同机型浮点格式的转 换不仅涉及阶码和尾数的表达,还涉及到浮点数存储的方式、位和位域操作等实现起来较繁 琐的问题,分析了其存储方式的异同,开发了一个CBitArray位数组类,结合VAX机型浮点数 与微机浮点数的转换,说明了该方法可简洁方便地实现不同类型浮点格式的转换。
Aimed at some nittygritty problems the that different type of floating number almost has different expression,floatingpoint format conversion of different computer type not only involves expressi on of exponent and floationgpoint coefficient,also for implementation such as storage mode of floating number,bit and bit region operation,the similaritie s and differences of storage mode are analyzed,and a CBit Array bit group is dev eloped.Combining with conversion of VAX computer type floating number and microc omputer floating number,the paper described that conversion of different type of floatingpoint format can be implemented simply and conveniently by the me thod.
出处
《电脑开发与应用》
2001年第2期12-13,16,共3页
Computer Development & Applications
关键词
浮点格式转换
浮点数
信息处理
计算机
应用
format conversion,floatingpoint for mat,floating number,bit group,bit operation,€