标题:把浮点型数用16位整型输出(Floating Point Presentation)
只看楼主
剑风曲
Rank: 1
等 级:新手上路
帖 子:69
专家分:0
注 册:2006-11-16
 问题点数:0 回复次数:0 
把浮点型数用16位整型输出(Floating Point Presentation)

Description:
Do you know IEEE’s contract of single floating point data? If you are not sure, following is the contract:
This problem is really simple for you: please convert the real data into the IEEE single floating point data presentation


Input:
There are N (1≤N≤150) real data need to be converted. Real data can be negative, zero, and positive.
Output:
For each real data, print the IEEE single floating point data presentation in upper case hexadecimal letters in a single line.
Sample Input:
2
23.85
-23.85
Sample Output:
41BECCCD
C1BECCCD


搜索更多相关主题的帖子: Presentation 整型 Point Floating 输出 
2006-12-01 16:41



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-106584-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.388425 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved