| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 622 人关注过本帖
标题:把浮点型数用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
快速回复:把浮点型数用16位整型输出(Floating Point Presentation)
数据加载中...
 
   



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

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