当前位置: 代码迷 >> C语言 >> 把浮点型数用16位整型输出(Floating Point Presentation)
  详细解决方案

把浮点型数用16位整型输出(Floating Point Presentation)

热度:735   发布时间:2006-12-01 16:41:52.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  输出  

----------------解决方案--------------------------------------------------------
  相关解决方案