首页 | 本学科首页   官方微博 | 高级检索  
     

浮点格式转换的分析与实现
引用本文:刘安,孙艳红.浮点格式转换的分析与实现[J].电脑开发与应用,2001,14(2):12-13,16.
作者姓名:刘安  孙艳红
作者单位:西安卫星测控中心,西安,710043
摘    要:针对不同类型浮点数表示不尽相同,不同机型浮点格式的转 换不仅涉及阶码和尾数的表达,还涉及到浮点数存储的方式、位和位域操作等实现起来较繁 琐的问题,分析了其存储方式的异同,开发了一个CBitArray位数组类,结合VAX机型浮点数 与微机浮点数的转换,说明了该方法可简洁方便地实现不同类型浮点格式的转换。

关 键 词:格式转换  浮点格式  浮点数  位数组类  位操作  MFC

Analysis and Realization of Floating- point Format Conversion
Abstract: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.
Keywords:format conversion  floatingpoint for mat  floating number  bit group  bit operation  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号